You can do...
WScript.StdErr.Write("custom error message")
wscript.quit(1)
Then the 'Result' will say "Failed", 'Output' or 'Output (stderr)' will show your error description (you can double click if it's more than one line).
'Result' will have the predefined error. You can live with it 🙂 or probably create additional lines in the xml file that has all the standard error messages defined. Start from 20000. I think VisualCron uses the xml file to get its descriptions but then you run the risk that this file may be overridden with new releases.
VisualCron doesn't seem to capture error when I execute:
WScript.StdErr.Write("custom error message")
Use exit codes is not an option as we want to log specific custom error messages about the details of the error and not predefined errors. Is there no way to set the task status to failed and add a reason through the API?
Edited by user
2011-03-03T21:29:32Z
|
Reason: Not specified