You can use code like the following to display errors:
If (Err.Number <> 0) Then Wscript.Echo "Error #: " & Err.Number Wscript.Echo "Description: " & Err.Description End If