win,build: set exit_code on configure failure
Fixes: nodejs/node#31573
Changed vcbuild.bat to exit with an error in case of exception in the configure script.
In case of failure, the error was not propagated because errorlevel
was overwritten with the result of del
command.
This should land in all LTS branches.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines