Skip to content

Commit

Permalink
Append dlopen errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Aug 3, 2015
1 parent 4785f70 commit a2f2728
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/modules.c
Expand Up @@ -253,10 +253,9 @@ lt_dlhandle lt_dlopenext(char const *name)

DEBUG4("Failed with error: %s", error);
/*
* Don't overwrite the previous message
* It's likely to contain a better error.
* Append the error
*/
if (!radlib_dir) fr_strerror_printf("%s", dlerror());
fr_strerror_printf("%s: %s", fr_strerror(), error);
return NULL;
}
return handle;
Expand Down

0 comments on commit a2f2728

Please sign in to comment.