rtfpessoa / diff2html-cli

Pretty diff to html javascript cli (diff2html-cli)
https://diff2html.xyz
MIT License
524 stars 50 forks source link

Return code should be non-zero on error #98

Closed vincentbernat closed 4 years ago

vincentbernat commented 4 years ago

Hey!

When running diff2html, I would expect that a fatal error would return a status code different of 0. Currently, the error is printed but the status code says 0.

rtfpessoa commented 4 years ago

I guess I never worked on that part. Eventually I should set process.exitCode

rtfpessoa commented 4 years ago

Check https://github.com/rtfpessoa/diff2html-cli#exit-status-codes for the codes and you can also start using it in version 5.1.0.

vincentbernat commented 4 years ago

Thanks!