igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

Build fails with error but exit code is 0 #72

Closed julian-weinert closed 8 years ago

julian-weinert commented 8 years ago

I encounter an Unexpected token build error but enclosure still exits with a 0 status code. This makes my IDE try to build other dependencies and the error message to be lost in void.

igorklopov commented 8 years ago

I will check and fix. Thanks

igorklopov commented 8 years ago

I could not reproduce the bug. In all my bad cases (even Unexpected token) i get 1 as status code. Can you give me more info about what you did to get the issue?

julian-weinert commented 8 years ago

@igorklopov sorry, I totally about forgot this... The most basic example would be calling enclose with an unrecognised argument:

enclose --unknown-argument && echo "exit code $?"

  error  Invalid option '--unknow-argument' - perhaps you meant '--no-color'?

exit code 0