From 5d4d90228dd0e06b670f4afb224f6465dc8df5d3 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Mon, 3 Mar 2014 23:02:52 +0900 Subject: [PATCH] update read error message --- src/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read.c b/src/read.c index b44ebabe..5d69dce0 100644 --- a/src/read.c +++ b/src/read.c @@ -167,7 +167,7 @@ read_one(yyscan_t scanner) int tok; if (setjmp(yyjmp) != 0) { - pic_errorf(pic, "read-error: %s", yymsg ? yymsg : "unexpected EOF"); + pic_errorf(pic, "%s", yymsg ? yymsg : "unexpected EOF"); } if ((tok = gettok(scanner)) == tEOF) { @@ -184,7 +184,7 @@ read_many(yyscan_t scanner) if (setjmp(yyjmp) != 0) { if (yymsg) { - pic_errorf(pic, "read-error: %s", yymsg); + pic_errorf(pic, "%s", yymsg); } return pic_undef_value(); /* incomplete string */ }