Update show-notification.ps1

This commit is contained in:
Markus Fleschutz 2022-09-10 22:45:56 +02:00
parent a0a9a6230f
commit a75cb369f1

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Shows a notification Shows a notification
.DESCRIPTION .DESCRIPTION
@ -25,6 +25,6 @@ try {
$balloon.ShowBalloonTip($Duration) $balloon.ShowBalloonTip($Duration)
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }