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; } { {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; }