about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr')
-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 56d8456c0001..5b1ff0350cd1 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;
             }