Closed husk3r closed 2 years ago
Gentle ping, since I opened two merge requests and you missed this one :-)
Hi, @husk3r,
No, I did not miss this one 😄 Yes it is a bug but I have just addressed it in a slightly different way: 0f26381
Thank you for reporting/fixing.
Also fine for me, thank you so much for your support. I will close this pull request
Hi Oleg,
it's me again. I just figured out that the return code was handled wrong when I execute scripts by
cscs myScript.cs
Expectation is here that the error level is set to
-2
after running this script, but it's0
. I debugged it at found that theMain
function ofcscs
overwrites the return code set inEnvironment.ExitCode
. This commit changes the signature to void and removes thereturn
statements.Florian