mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
plugins: Return command_param_failed() if param() fail
This commit is contained in:
committed by
Rusty Russell
parent
fe66b53fb9
commit
2d1a153975
@@ -636,7 +636,7 @@ static void setup_command_usage(const struct plugin_command *commands,
|
||||
|
||||
usage_cmd->methodname = commands[i].name;
|
||||
res = commands[i].handle(usage_cmd, NULL, NULL);
|
||||
assert(res == NULL);
|
||||
assert(res == &complete);
|
||||
assert(strmap_get(&usagemap, commands[i].name));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user