mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
add entry/exit functions to readme.
rethrow LoginError exceptions, let the consumer handle it.
This commit is contained in:
@@ -105,7 +105,7 @@ Function Connect-Voicemeeter {
|
||||
}
|
||||
catch [LoginError] {
|
||||
Write-Warning $_.Exception.ErrorMessage()
|
||||
Exit
|
||||
throw
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user