querly
querly copied to clipboard
[Feature Request] Different exit code for fatal error
Hello,
I'm in trouble because I cannot distinguish a fatal error from a rule violation by the exit code. 😰
https://github.com/soutaro/querly/blob/6bfde87138185195016b3b67eb4387392db9811d/lib/querly/cli/test.rb#L36-L41
https://github.com/soutaro/querly/blob/6bfde87138185195016b3b67eb4387392db9811d/lib/querly/cli.rb#L59-L61
Without parsing the output (STDOUT and STDERR), is there a way to distinguish them?
If no way, perhaps this may be a breaking change, would it be a good idea to add a new exit code (e.g. 1) for a fatal error?
I would be happy if you could consider this idea. Thank you.