From 603f08506eb4bda7138ae102fd09498fc1f9b632 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Dec 2016 17:18:40 +0100 Subject: Tweak error message --- src/libexpr/lexer.l | 4 ++-- 1 file 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; } { {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; } -- cgit 1.4.1