From c3106a96082276c72daabce0557042d0d1df7b9f Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 12 Jul 2014 22:21:19 +0900 Subject: [PATCH] improve error message --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index cfa8355c..0063cb92 100644 --- a/src/vm.c +++ b/src/vm.c @@ -427,7 +427,7 @@ pic_ref(pic_state *pic, const char *name) gid = global_ref(pic, name); if (gid == SIZE_MAX) { - pic_error(pic, "symbol not defined"); + pic_errorf(pic, "symbol \"%s\" not defined", name); } return pic->globals[gid]; }