refine variabe redefinitino error message

This commit is contained in:
Yuichi Nishiwaki 2014-03-25 14:31:32 +09:00
parent c3240b9133
commit 594742f845
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}