Improved error message on failed module load

This commit is contained in:
Clifford Wolf 2013-03-06 18:30:45 +01:00
parent b380af9d6d
commit f2f3e2cb19
1 changed files with 1 additions and 1 deletions

View File

@ -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;