Home
Options

lprun and %errorlevel%


Is it correct for lprun to return an non-zero error code in this situation?

void Main()
{
try{
var r = 1 /0;
}
catch(Exception e)
{
//do nada
}
}

I would think that since the exception is caught, that it should be an exit code of zero?

But in actuality the error level is set to 1, in this situation.

Thanks!

Comments

Sign In or Register to comment.