plugins: Return command_param_failed() if param() fail

This commit is contained in:
trueptolemy
2019-09-18 18:14:44 +08:00
committed by Rusty Russell
parent fe66b53fb9
commit 2d1a153975
4 changed files with 6 additions and 6 deletions

View File

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