improve export error message

This commit is contained in:
Yuichi Nishiwaki 2014-02-13 15:00:48 +09:00
parent ac136bbc2e
commit f9046cc614
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ pic_export(pic_state *pic, pic_sym sym)
e = xh_get_int(pic->lib->senv->name, sym);
if (! e) {
pic_error(pic, "symbol not defined");
pic_errorf(pic, "export: symbol not defined %s", pic_symbol_name(pic, sym));
}
xh_put_int(pic->lib->exports, (long)e->key, e->val);
}