From b4609aafb744b63a70b4523b192f3f137e92c7ff Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 15 Mar 2014 20:52:34 +0900 Subject: [PATCH] refine pic_load error message --- src/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load.c b/src/load.c index fd601f7e..6b219726 100644 --- a/src/load.c +++ b/src/load.c @@ -15,7 +15,7 @@ pic_load(pic_state *pic, const char *fn) file = fopen(fn, "r"); if (file == NULL) { - pic_error(pic, "load: could not read file"); + pic_errorf(pic, "load: could not read file \"%s\"", fn); } exprs = pic_parse_file(pic, file);