diff --git a/lightningd/plugin.c b/lightningd/plugin.c index 942609dd1..9589d37e4 100644 --- a/lightningd/plugin.c +++ b/lightningd/plugin.c @@ -848,7 +848,7 @@ char *add_plugin_dir(struct plugins *plugins, const char *dir, bool nonexist_ok) if (!d) { if (nonexist_ok && errno == ENOENT) return NULL; - return tal_fmt("Failed to open plugin-dir %s: %s", + return tal_fmt(NULL, "Failed to open plugin-dir %s: %s", dir, strerror(errno)); }