diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-12-06 17:18:40 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-12-06 17:18:40 +0100 |
commit | 603f08506eb4bda7138ae102fd09498fc1f9b632 (patch) | |
tree | 19d2b8788c4716349a97a144bca33ee8cf788c7f | |
parent | 09191caea8a0bf59daef553ca251a8d1d7e1d507 (diff) |
Tweak error message
-rw-r--r-- | src/libexpr/lexer.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l index 56d8456c0..5b1ff0350 100644 --- a/src/libexpr/lexer.l +++ b/src/libexpr/lexer.l @@ -183,12 +183,12 @@ or { return OR_KW; } <INITIAL,INSIDE_DOLLAR_CURLY>{ {PATH} { if (yytext[yyleng-1] == '/') - throw ParseError(format("Invalid path '%1%'; trailing slashes are not allowed in paths") % yytext); + throw ParseError("path ā%sā has a trailing slash", yytext); yylval->path = strdup(yytext); return PATH; } {HPATH} { if (yytext[yyleng-1] == '/') - throw ParseError(format("Invalid path '%1%'; trailing slashes are not allowed in paths") % yytext); + throw ParseError("path ā%sā has a trailing slash", yytext); yylval->path = strdup(yytext); return HPATH; } |