With QuPath-0.2.3, I ran a broken script like this:
QuPath-0.2.3 script -i /path/to/image.tif brokenscript
where brokenscript gave a Java exception. Unfortunately, QuPath then exited with status 0 (EXIT_SUCCESS), meaning that my calling script cannot easily test whether the script worked or not.
It would be great if QuPath exited with an error status if the script exits with an error.
Best wishes, Julian