summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin.c b/plugin.c
index 73b6c65..ea6e60f 100644
--- a/plugin.c
+++ b/plugin.c
@@ -489,8 +489,12 @@ rpc_plugin_register_library(struct ubus_context *ctx, const char *path)
dlh = dlopen(path, RTLD_LAZY | RTLD_LOCAL);
- if (!dlh)
+ if (!dlh) {
+ fprintf(stderr, "Failed to load plugin %s: %s\n",
+ path, dlerror());
+
return UBUS_STATUS_UNKNOWN_ERROR;
+ }
p = dlsym(dlh, "rpc_plugin");