Merge pull request #720 from agordon/exit-code-5-exceptions
exit with non-zero code on runtime exceptions
This commit is contained in:
commit
3e8183fcd5
1 file changed
+1
@@ -132,6 +132,7 @@ static int process(jq_state *jq, jv value, int flags, int dumpopts) {
|
|||||||
msg = jv_dump_string(msg, 0);
|
msg = jv_dump_string(msg, 0);
|
||||||
fprintf(stderr, "jq: error (not a string): %s\n", jv_string_value(msg));
|
fprintf(stderr, "jq: error (not a string): %s\n", jv_string_value(msg));
|
||||||
}
|
}
|
||||||
|
ret = 5;
|
||||||
jv_free(msg);
|
jv_free(msg);
|
||||||
}
|
}
|
||||||
jv_free(result);
|
jv_free(result);
|
||||||
|
|||||||
Reference in new issue
Block a user