From 2c53572798f78ce2a66aced0627b7b3f2adb0514 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 15 Dec 2018 22:32:12 +0100 Subject: [PATCH] plugin: Add missing context to tal_fmt call on error message Seems the context parameter got lost somewhere. Reported-by: Ulmo <@ulmo> Signed-off-by: Christian Decker --- lightningd/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }