Skip to content

Commit

Permalink
print dlerror
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Nov 11, 2023
1 parent 26b4cbd commit c21172c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dlsym_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ int dlsym_interface_init()

if (!(apdu_interface_dlhandle = dlopen(libapduinterface_path, RTLD_LAZY)))
{
fprintf(stderr, "APDU interface env missing, current: APDU_INTERFACE=%s\n", libapduinterface_path);
fprintf(stderr, "APDU interface env missing, current: APDU_INTERFACE=%s err:%s\n", libapduinterface_path, dlerror());
return -1;
}

if (!(http_interface_dlhandle = dlopen(libhttpinterface_path, RTLD_LAZY)))
{
fprintf(stderr, "HTTP interface env missing, current: HTTP_INTERFACE=%s\n", libhttpinterface_path);
fprintf(stderr, "HTTP interface env missing, current: HTTP_INTERFACE=%s err:%s\n", libhttpinterface_path, dlerror());
}

if (apdu_interface_dlhandle)
Expand Down

0 comments on commit c21172c

Please sign in to comment.