Don't 'exit' a script meant to be "source"d
Running exit in a script meant to be sourced means the user shell will exit, which prevents seeing the error message, and is generally very annoying.
Fixes: https://github.com/nodejs/node/issues/35519
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines