From 594742f84563bcbf523a2dbfdca67a49dc976f1c Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 25 Mar 2014 14:31:32 +0900 Subject: [PATCH] refine variabe redefinitino error message --- src/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index c17da0f0..22c18714 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -253,7 +253,7 @@ define_var(analyze_state *state, pic_sym sym) analyze_scope *scope = state->scope; if (lookup_scope(scope, sym)) { - pic_warn(pic, "redefining variable"); + pic_warnf(pic, "redefining variable: ~s", pic_sym_value(sym)); return; }