Merge pull request #720 from agordon/exit-code-5-exceptions

exit with non-zero code on runtime exceptions
This commit is contained in:
Nico Williams committed 2015-03-08 17:09:07 -05:00
commit 3e8183fcd5
1 file changed
+1
+1
View File
@@ -132,6 +132,7 @@ static int process(jq_state *jq, jv value, int flags, int dumpopts) {
msg = jv_dump_string(msg, 0);
fprintf(stderr, "jq: error (not a string): %s\n", jv_string_value(msg));
}
ret = 5;
jv_free(msg);
}
jv_free(result);