summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-11-27 17:08:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-27 17:08:53 +0100
commitd9e669ac06ecb55948bc6fa7a5ed568f746be4e0 (patch)
tree0446337a5ec1a676269ff0c04b7f499a2aaa5d39
parentf9867a313fe7c2b191b22059180c12eea7f9d7af (diff)
downloadeo_tokenizer-d9e669ac06ecb55948bc6fa7a5ed568f746be4e0.zip
eo_tokenizer-d9e669ac06ecb55948bc6fa7a5ed568f746be4e0.tar.gz
error msg shows wrong char
-rw-r--r--eo_tokenizer.rl4
1 files changed, 2 insertions, 2 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl
index 86e3b30..3a10e8d 100644
--- a/eo_tokenizer.rl
+++ b/eo_tokenizer.rl
@@ -136,8 +136,8 @@ _eo_tokenizer_accessor_get(Eo_Tokenizer *toknz, Eo_Accessor_Type type)
*d++ = *s;
}
*d = '\0';
- ERR("error nesting:%d line:%d : %s",
- toknz->current_nesting, toknz->current_line, buf);
+ ERR("error n:%d l:%d c:'%c': %s",
+ toknz->current_nesting, toknz->current_line, *fpc, buf);
toknz->cs = eo_tokenizer_error;
fbreak; /* necessary to stop scanners */
}