Include filename and lineno in error messages
This commit is contained in:
1 parent
7d6d4066dd
commit
1dcfc2f547
7 files changed
+27
-18
No files matched your search
@@ -1008,7 +1008,7 @@ int jq_compile_args(jq_state *jq, const char* str, jv args) {
|
||||
jv_nomem_handler(jq->nomem_handler, jq->nomem_handler_data);
|
||||
assert(jv_get_kind(args) == JV_KIND_ARRAY);
|
||||
struct locfile* locations;
|
||||
locations = locfile_init(jq, str, strlen(str));
|
||||
locations = locfile_init(jq, "<top-level>", str, strlen(str));
|
||||
block program;
|
||||
jq_reset(jq);
|
||||
if (jq->bc) {
|
||||
|
||||
Reference in new issue
Block a user