Skip to content

Commit

Permalink
Replace All StdErr with StdOut
Browse files Browse the repository at this point in the history
  • Loading branch information
OldLiu001 committed Aug 10, 2024
1 parent 9420fe9 commit d57ec1c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions impls/vbs/step3_env.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ Sub REPL()
On Error Resume Next
strRes = REP(strCode)
If Err.Number <> 0 Then
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
Else
If strRes <> "" Then
WScript.Echo strRes
Expand Down
4 changes: 2 additions & 2 deletions impls/vbs/step4_if_fn_do.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ Sub REPL()
On Error Resume Next
strRes = REP(strCode)
If Err.Number <> 0 Then
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
Else
If strRes <> "" Then
WScript.Echo strRes
Expand Down
4 changes: 2 additions & 2 deletions impls/vbs/step5_tco.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ Sub REPL()
On Error Resume Next
strRes = REP(strCode)
If Err.Number <> 0 Then
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
Else
If strRes <> "" Then
WScript.Echo strRes
Expand Down
4 changes: 2 additions & 2 deletions impls/vbs/step6_file.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ Sub REPL()
On Error Resume Next
strRes = REP(strCode)
If Err.Number <> 0 Then
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
Else
If strRes <> "" Then
WScript.Echo strRes
Expand Down
4 changes: 2 additions & 2 deletions impls/vbs/step7_quote.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ Sub REPL()
On Error Resume Next
strRes = REP(strCode)
If Err.Number <> 0 Then
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
Else
If strRes <> "" Then
WScript.Echo strRes
Expand Down
4 changes: 2 additions & 2 deletions impls/vbs/step8_macros.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ Sub REPL()
On Error Resume Next
strRes = REP(strCode)
If Err.Number <> 0 Then
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
Else
If strRes <> "" Then
WScript.Echo strRes
Expand Down
8 changes: 4 additions & 4 deletions impls/vbs/step9_try.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ Sub REPL()
strRes = REP(strCode)
If Err.Number <> 0 Then
If Err.Source = "MThrow" Then
'WScript.StdErr.WriteLine Err.Source + ": " + _
WScript.StdErr.WriteLine "Exception: " + _
'WScript.StdOut.WriteLine Err.Source + ": " + _
WScript.StdOut.WriteLine "Exception: " + _
PrintMalType(objExceptions.Item(Err.Description), True)
objExceptions.Remove Err.Description
Else
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
End If
Else
If strRes <> "" Then
Expand Down
8 changes: 4 additions & 4 deletions impls/vbs/stepA_mal.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ Sub REPL()
strRes = REP(strCode)
If Err.Number <> 0 Then
If Err.Source = "MThrow" Then
'WScript.StdErr.WriteLine Err.Source + ": " + _
WScript.StdErr.WriteLine "Exception: " + _
'WScript.StdOut.WriteLine Err.Source + ": " + _
WScript.StdOut.WriteLine "Exception: " + _
PrintMalType(objExceptions.Item(Err.Description), True)
objExceptions.Remove Err.Description
Else
'WScript.StdErr.WriteLine Err.Source + ": " + Err.Description
WScript.StdErr.WriteLine "Exception: " + Err.Description
'WScript.StdOut.WriteLine Err.Source + ": " + Err.Description
WScript.StdOut.WriteLine "Exception: " + Err.Description
End If
Else
If strRes <> "" Then
Expand Down

0 comments on commit d57ec1c

Please sign in to comment.