diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sapi_voice.vbs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/sapi_voice.vbs b/tools/sapi_voice.vbs index a232b6f9e5..c29b5814d0 100755 --- a/tools/sapi_voice.vbs +++ b/tools/sapi_voice.vbs | |||
@@ -169,6 +169,17 @@ Do | |||
169 | Case "EXEC" | 169 | Case "EXEC" |
170 | If bVerbose Then WScript.StdErr.WriteLine "> " & aLine(1) | 170 | If bVerbose Then WScript.StdErr.WriteLine "> " & aLine(1) |
171 | oShell.Run aLine(1), 0, true | 171 | oShell.Run aLine(1), 0, true |
172 | If Err.Number <> 0 Then | ||
173 | If Not bVerbose Then | ||
174 | WScript.StdErr.Write "> " & aLine(1) & ": " | ||
175 | End If | ||
176 | If Err.Number = &H80070002 Then ' Actually file not found | ||
177 | WScript.StdErr.WriteLine "command not found" | ||
178 | Else | ||
179 | WScript.StdErr.WriteLine Err.Description | ||
180 | End If | ||
181 | WScript.Quit 2 | ||
182 | End If | ||
172 | Case "SYNC" | 183 | Case "SYNC" |
173 | If bVerbose Then WScript.StdErr.WriteLine "Syncing" | 184 | If bVerbose Then WScript.StdErr.WriteLine "Syncing" |
174 | WScript.StdOut.WriteLine aLine(1) ' Just echo what was passed | 185 | WScript.StdOut.WriteLine aLine(1) ' Just echo what was passed |