Closed GoogleCodeExporter closed 9 years ago
Hi, I added exit error code for NConsoler specific errors -
currently it sets 1 as error code
const int errorExitCode = 1;
Environment.ExitCode = errorExitCode;
Tested for method:
[Action]
public static void M1(string a1, string a2)
{
Console.WriteLine(a1);
}
And tested with script:
program.exe 1stArg
echo on
echo %errorlevel%
pause
it outputs something like:
Not all required parameters are set
1
Original comment by tihobra...@gmail.com
on 6 Nov 2009 at 11:38
This code available in SVN
Original comment by tihobra...@gmail.com
on 6 Nov 2009 at 11:39
Original issue reported on code.google.com by
rami.abughazaleh@gmail.com
on 1 Nov 2009 at 6:50