ucode: add ucode interpreter plugin
[project/rpcd.git] / plugin.c
index 73b6c653106b1fcf6a636e50380e221b57cca098..ea6e60fd64ad2b90d8a4bd88604ac8df89494f1c 100644 (file)
--- 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");