display libray specs in 'library not found' error

This commit is contained in:
Yuichi Nishiwaki 2014-05-21 00:37:15 +09:00
parent 3232f20936
commit cefe1d8879
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ pic_in_library(pic_state *pic, pic_value spec)
lib = pic_find_library(pic, spec);
if (! lib) {
pic_error(pic, "library not found");
pic_errorf(pic, "library not found: ~a", spec);
}
pic->lib = lib;
}

View File

@ -79,7 +79,7 @@ pic_import(pic_state *pic, pic_value spec)
lib = pic_find_library(pic, spec);
if (! lib) {
pic_error(pic, "library not found");
pic_errorf(pic, "library not found: ~a", spec);
}
xh_begin(&it, &lib->exports);
while (xh_next(&it)) {