mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 13:36:39 +01:00
Update speak-italian.ps1
This commit is contained in:
parent
6df6a8c307
commit
0b65a7ecf7
@ -25,9 +25,8 @@ try {
|
||||
[void]$Voice.Speak($text)
|
||||
exit 0
|
||||
}
|
||||
write-error "Sorry, no Italian text-to-speech voice found - please install one"
|
||||
exit 1
|
||||
throw "No Italian text-to-speech voice found - please install one"
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user