diff options
author | Christophe de Dinechin <dinechin@redhat.com> | 2017-11-22 15:22:43 +0100 |
---|---|---|
committer | Christophe de Dinechin <dinechin@redhat.com> | 2017-11-22 16:48:00 +0100 |
commit | 3f3d9d535f48f15bc1a1d4ddf5a6214994ccfaae (patch) | |
tree | 752b6726e94b8d83b3c473d532ef8ec8736bada1 | |
parent | b9069406f223748efc759848dfd83fb3b05e60c3 (diff) |
Report reason when there is an error loading the plugin
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | src/concrete-agent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/concrete-agent.cpp b/src/concrete-agent.cpp index 192054a..9f1295a 100644 --- a/src/concrete-agent.cpp +++ b/src/concrete-agent.cpp @@ -81,7 +81,8 @@ void ConcreteAgent::LoadPlugin(const char *plugin_filename) { void *dl = dlopen(plugin_filename, RTLD_LOCAL|RTLD_NOW); if (!dl) { - syslog(LOG_ERR, "error loading plugin %s", plugin_filename); + syslog(LOG_ERR, "error loading plugin %s: %s", + plugin_filename, dlerror()); return; } |