aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-11-18 00:59:05 +1000
committerGravatar axel <axel@liljencrantz.se>2006-11-18 00:59:05 +1000
commit1e8fe508f0288ec4e618daf62382ad7c5f6175a5 (patch)
tree937eea4d4f9cb1ca1dcc824340a8491772a31622 /tokenizer.c
parent54244fd33dc172d6d7aa15eefa06f8685e3fef49 (diff)
Tweak error messages in tokenizer a bit
darcs-hash:20061117145905-ac50b-ee735bf04d2dcbabc272c4f12cb64a8af51b83bf.gz
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/tokenizer.c b/tokenizer.c
index 81f61f64..c497408c 100644
--- a/tokenizer.c
+++ b/tokenizer.c
@@ -28,22 +28,17 @@ segments.
/**
Error string for unexpected end of string
*/
-#define EOL_ERROR _( L"Unexpected end of token" )
-
-/**
- Error string for unexpected end of string
-*/
-#define QUOTE_ERROR _( L"Unterminated quote" )
+#define QUOTE_ERROR _( L"Unexpected end of string, quotes are not balanced" )
/**
Error string for mismatched parenthesis
*/
-#define PARAN_ERROR _( L"Parenthesis mismatch" )
+#define PARAN_ERROR _( L"Unexpected end of string, parenthesis do not match" )
/**
Error string for invalid redirections
*/
-#define REDIRECT_ERROR _( L"Invalid redirection" )
+#define REDIRECT_ERROR _( L"Invalid input/output redirection" )
/**
Error string for when trying to pipe from fd 0
@@ -251,7 +246,7 @@ static void read_string( tokenizer *tok )
tok->buff++;
if( *tok->buff == L'\0' )
{
- tok_error( tok, TOK_UNTERMINATED_ESCAPE, EOL_ERROR );
+ tok_error( tok, TOK_UNTERMINATED_ESCAPE, QUOTE_ERROR );
return;
}
else if( *tok->buff == L'\n' && mode == 0)