diff options
Diffstat (limited to 'src/libexpr')
-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; } |