refine variabe redefinitino error message
This commit is contained in:
parent
c3240b9133
commit
594742f845
|
@ -253,7 +253,7 @@ define_var(analyze_state *state, pic_sym sym)
|
||||||
analyze_scope *scope = state->scope;
|
analyze_scope *scope = state->scope;
|
||||||
|
|
||||||
if (lookup_scope(scope, sym)) {
|
if (lookup_scope(scope, sym)) {
|
||||||
pic_warn(pic, "redefining variable");
|
pic_warnf(pic, "redefining variable: ~s", pic_sym_value(sym));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue