mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-20 08:58:18 +02:00
Update show-notification.ps1
This commit is contained in:
parent
a0a9a6230f
commit
a75cb369f1
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user