aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r--src/libexpr/lexer.l4
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;
}