diff --git a/parser.c b/parser.c index 3f861c34e..0b7b90b2b 100644 --- a/parser.c +++ b/parser.c @@ -118,6 +118,11 @@ The fish parser. Contains functions for parsing code. */ #define INVALID_ELSE_ERR_MSG L"'else' builtin not inside of if block" +/** + Error when using end builtin outside of block +*/ +#define INVALID_END_ERR_MSG L"'end' command outside of block" + /** Error message for Posix-style assignment */ @@ -2376,7 +2381,7 @@ int parser_test( wchar_t * buff, { error( SYNTAX_ERROR, tok_get_pos( &tok ), - L"'end' command outside of block" ); + INVALID_END_ERR_MSG ); print_errors(); } }