diff options
author | Nicolas Williams <nico@cryptonector.com> | 2015-03-29 19:12:23 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2015-03-30 15:56:29 -0500 |
commit | 1dcfc2f5473364a3a1a7261ab933245504dea891 (patch) | |
tree | 191fc3c1e4b2975f507b1ca5727f77294a1f419f /execute.c | |
parent | 7d6d4066dd2fdedae90ce3498b8f5a4702dffaa7 (diff) |
Include filename and lineno in error messages
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |