To simplify, I have batch file which runs multiple python programs:
start "01" /wait "C:\python27\python.exe" test1.py
start "02" /wait "C:\python27\python.exe" test2.py
But I found that even if test1.py is not run because of its error, it simply moves on to run test2.py.
It even just closes the window for test1.py as soon as it confronts that error, and just creates another window for test2.py
Of course, if I run test1.py separately by running
python test1.py
then it prints all error messages.
Since I have tens of python files in one batch, it becomes very hard to know which one of these caused the error, and I can't even know what's that error because I can't see the error messages.
How can I make it stop (but not closes the window) when it meets some error, and shows me the error message?