$LASTERRORCODE is not the same as $?
It works only on native executable errors. Some executables like git also write logs on error stream (this is a problem on linux too).
It works only on native executable errors. Some executables like git also write logs on error stream (this is a problem on linux too).
No comments yet.