Update speak-italian.ps1

This commit is contained in:
Markus 2021-09-16 19:35:54 +02:00
parent 6df6a8c307
commit 0b65a7ecf7

View File

@ -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
}