jsolait's WSH environment currently exits with no chance to verify if something went wrong. This is useful, for example:
- For a build script to stop when a compilation error occurs;
- For the Operating System environment or a program knows that something went wrong when invoking jsolait's code.
I suggest a small change near the end of jsolait.wsf:
try{
imprt("jsolaitws").run();
}catch(e){
log(e,LogError);
//something went wrong - exit with errorlevel set
WScript.quit(1);
}
There are several other return's in top level code, but according to the try/catch blocks, it seems this is the most (or only) appropriate place for error level setting.
Best regards,
Helder