display libray specs in 'library not found' error
This commit is contained in:
parent
3232f20936
commit
cefe1d8879
|
@ -44,7 +44,7 @@ pic_in_library(pic_state *pic, pic_value spec)
|
||||||
|
|
||||||
lib = pic_find_library(pic, spec);
|
lib = pic_find_library(pic, spec);
|
||||||
if (! lib) {
|
if (! lib) {
|
||||||
pic_error(pic, "library not found");
|
pic_errorf(pic, "library not found: ~a", spec);
|
||||||
}
|
}
|
||||||
pic->lib = lib;
|
pic->lib = lib;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ pic_import(pic_state *pic, pic_value spec)
|
||||||
|
|
||||||
lib = pic_find_library(pic, spec);
|
lib = pic_find_library(pic, spec);
|
||||||
if (! lib) {
|
if (! lib) {
|
||||||
pic_error(pic, "library not found");
|
pic_errorf(pic, "library not found: ~a", spec);
|
||||||
}
|
}
|
||||||
xh_begin(&it, &lib->exports);
|
xh_begin(&it, &lib->exports);
|
||||||
while (xh_next(&it)) {
|
while (xh_next(&it)) {
|
||||||
|
|
Loading…
Reference in New Issue