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 <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-12-15 22:32:12 +01:00 committed by Rusty Russell
parent 05dc095ebc
commit 2c53572798

View File

@ -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));
}