mirror of https://github.com/YosysHQ/yosys.git
Improved error message on failed module load
This commit is contained in:
parent
b380af9d6d
commit
f2f3e2cb19
|
@ -238,7 +238,7 @@ int main(int argc, char **argv)
|
|||
case 'm':
|
||||
loaded_modules.push_back(dlopen(optarg, RTLD_LAZY|RTLD_GLOBAL));
|
||||
if (loaded_modules.back() == NULL) {
|
||||
fprintf(stderr, "Can't load module `%s'!\n", optarg);
|
||||
fprintf(stderr, "Can't load module `%s': %s\n", optarg, dlerror());
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue