Skip to content

Commit

Permalink
Log last error from dlopen and dlsym (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Nov 20, 2023
1 parent ca47f06 commit ccbd2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appbundler/native/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@ int launch(char *commandName, int progargc, char *progargv[]) {

if (libJLI == NULL)
{
Log(@"dlopen of Dylib failed");
Log(@"dlopen of Dylib failed: %s", dlerror());
}
else
{
jli_LaunchFxnPtr = dlsym(libJLI, "JLI_Launch");
if (jli_LaunchFxnPtr == NULL)
{
Log(@"Could not find symbol 'JLI_Launch' in Dylib");
Log(@"Could not find symbol 'JLI_Launch' in Dylib: %s", dlerror());
}
}
}
Expand Down

0 comments on commit ccbd2d6

Please sign in to comment.