summaryrefslogtreecommitdiffstats
path: root/execute.c
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2015-03-29 19:12:23 -0500
committerNicolas Williams <nico@cryptonector.com>2015-03-30 15:56:29 -0500
commit1dcfc2f5473364a3a1a7261ab933245504dea891 (patch)
tree191fc3c1e4b2975f507b1ca5727f77294a1f419f /execute.c
parent7d6d4066dd2fdedae90ce3498b8f5a4702dffaa7 (diff)
Include filename and lineno in error messages
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/execute.c b/execute.c
index 6c6c9b11..d5f243bd 100644
--- a/execute.c
+++ b/execute.c
@@ -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) {