Try to get better error handling in VBS
This commit is contained in:
parent
f76123a721
commit
b6c37554ab
|
@ -93,7 +93,8 @@ Private Sub Run
|
|||
If code = "" Then code = RemoveCr(input.value)
|
||||
If Trim(code) = "" Then Exit Sub
|
||||
Err.Clear
|
||||
Execute code
|
||||
ConsoleLog code, "lightblue"
|
||||
Execute "On Error Resume Next" & vbCrLf & code
|
||||
If Err.Number <> 0 Then
|
||||
Error "Error " & Err.Number & " - " & Err.Source & ": " & Err.Description
|
||||
End If
|
||||
|
|
Loading…
Reference in New Issue