Ticket #26 (assigned enhancement)

Opened 2 years ago

Last modified 2 years ago

setting errorlevel when running/building jsolait

Reported by: heldermagalhaes Assigned to: Jan-Klaas Kollhof (accepted)
Priority: low Milestone: 2.1
Component: jsolait-core Version: 2.0
Severity: minor Keywords:
Cc:

Description

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

Change History

09/19/06 09:07:21 changed by Jan-Klaas Kollhof

  • status changed from new to assigned.