aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-03 06:05:39 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-07-03 06:05:39 +0200
commitb431f79db6deb75229748f80a3e9e448b6dacf31 (patch)
treee7ffe0864ab6e0db213afcb0e2a260d27b663d69 /src/error.c
parent3968529cad2baec099acff5fee47b5fe24624b03 (diff)
downloadblogc-b431f79db6deb75229748f80a3e9e448b6dacf31.tar.gz
blogc-b431f79db6deb75229748f80a3e9e448b6dacf31.tar.bz2
blogc-b431f79db6deb75229748f80a3e9e448b6dacf31.zip
Revert "error: improved parser error reporting"
this will not work properly for unicode chars This reverts commit 3968529cad2baec099acff5fee47b5fe24624b03.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c
index acce506..586386a 100644
--- a/src/error.c
+++ b/src/error.c
@@ -96,8 +96,8 @@ blogc_error_parser(blogc_error_type_t type, const char *src, size_t src_len,
rv = blogc_error_new(type, msg);
else
rv = blogc_error_new_printf(type,
- "%s\nError occurred near line %d, position %d:\n%s\n%*s", msg,
- lineno, pos, line, pos, "^");
+ "%s\nError occurred near line %d, position %d: %s", msg, lineno,
+ pos, line);
free(msg);
free(line);