mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Tweak error message
This commit is contained in:
parent
09191caea8
commit
603f08506e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue