I am recently launching Photoscan GUI in my nodejs program (by using child_process in nodejs) to make some process. If the process finished or failed, it will use app.quit() to exit Photoscan GUI and continue my nodejs program.
But the thing is that i want to pass the error message when i do app.quit(), like app.quit('My error message'). I tried using sys.exit('my error message'), bug it did not work.
Regards.