summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.cxx b/parse.cxx
index 4c881164..26792010 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -526,7 +526,7 @@ lexer::scan ()
// Use @1/$1 as the base, not @0/$0. Thus the idx-1.
if (errno == ERANGE || errno == EINVAL || *endp != '\0' ||
idx == 0 || idx-1 >= session.args.size ())
- throw parse_error ("command line argument index invalid or out of range");
+ throw parse_error ("command line argument index invalid or out of range", n);
string arg = session.args[idx-1];
n->type = (n->content[0] == '@') ? tok_string : tok_number;