Forum

Author Topic: Could i pass an error message when i do app.quit() ?  (Read 3008 times)

jiji

  • Newbie
  • *
  • Posts: 24
    • View Profile
Could i pass an error message when i do app.quit() ?
« on: January 15, 2017, 12:41:44 AM »
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.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15160
    • View Profile
Re: Could i pass an error message when i do app.quit() ?
« Reply #1 on: January 18, 2017, 02:37:32 PM »
Hello jiji,

When and where should this message appear?
Best regards,
Alexey Pasumansky,
Agisoft LLC