mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Improve the error message line
This commit is contained in:
@ -19,7 +19,7 @@ try {
|
||||
$FoundOne = $true
|
||||
}
|
||||
if (!$FoundOne) { throw "No VPN connection available" }
|
||||
exit 0
|
||||
exit 0 # success
|
||||
} catch {
|
||||
& "$PSScriptRoot/give-reply.ps1" "Sorry: $($Error[0])."
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user