add entry/exit functions to readme.

rethrow LoginError exceptions, let the consumer handle it.
This commit is contained in:
2022-12-17 20:10:53 +00:00
parent 3b4185c251
commit ff4391c6fb
4 changed files with 18 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ Function Connect-Voicemeeter {
}
catch [LoginError] {
Write-Warning $_.Exception.ErrorMessage()
Exit
throw
}
}

View File

@@ -45,7 +45,7 @@ function Login {
}
catch [LoginError], [CAPIError] {
Write-Warning $_.Exception.ErrorMessage()
exit
throw
}
while (P_Dirty -or M_Dirty) { Start-Sleep -m 1 }