mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
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:
parent
05dc095ebc
commit
2c53572798
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user