No non-zero exit code in case of parsing errors #71
Labels
Awaiting Release
Issue is fixed, but not available in a published release
Bug
Something isn't working
Description
jlesscurrently returns 0 (success) as an exit code, even if the command failed (e.g. if the input wasn't valid JSON). To reproduce:will result the following output:
Impact / use-case
Having a non-zero exit code increases interoperability and allows for fallbacks in scripts, e.g.
jless "$@" || less "$@"The text was updated successfully, but these errors were encountered: