improve error message
This commit is contained in:
parent
114e445901
commit
c3106a9608
2
src/vm.c
2
src/vm.c
|
@ -427,7 +427,7 @@ pic_ref(pic_state *pic, const char *name)
|
||||||
|
|
||||||
gid = global_ref(pic, name);
|
gid = global_ref(pic, name);
|
||||||
if (gid == SIZE_MAX) {
|
if (gid == SIZE_MAX) {
|
||||||
pic_error(pic, "symbol not defined");
|
pic_errorf(pic, "symbol \"%s\" not defined", name);
|
||||||
}
|
}
|
||||||
return pic->globals[gid];
|
return pic->globals[gid];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue