about summary refs log tree commit diff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-12-06T16·18+0100
committerEelco Dolstra <edolstra@gmail.com>2016-12-06T16·18+0100
commit603f08506eb4bda7138ae102fd09498fc1f9b632 (patch)
tree19d2b8788c4716349a97a144bca33ee8cf788c7f /src/libexpr/lexer.l
parent09191caea8a0bf59daef553ca251a8d1d7e1d507 (diff)
Tweak error message
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 56d8456c00..5b1ff0350c 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;
             }