Skip to content

Commit

Permalink
Update error message for dlsym
Browse files Browse the repository at this point in the history
  • Loading branch information
pranith committed Feb 2, 2016
1 parent 616a867 commit 2f15b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgzd.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace Mgzd {
const char *sym) {
(void*&)ret = dlsym(lib.handle, sym);
if (char *err = dlerror()) {
std::cerr << "dlsym(\"" << lib.handle << "\", \"" << sym
std::cerr << "dlsym(\"" << lib.file.c_str() << "\", \"" << sym
<< "\") failed: " << err << '\n';
exit(1);
}
Expand Down

0 comments on commit 2f15b5f

Please sign in to comment.