mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
jsonrpc: Properly report code for detailed errors.
This commit is contained in:
parent
4ac5d123d6
commit
4ef168cd97
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ static void command_fail_v(struct command *cmd,
|
||||||
quote = tal_fmt(cmd, "\"%s\"", error);
|
quote = tal_fmt(cmd, "\"%s\"", error);
|
||||||
|
|
||||||
assert(jcon->current == cmd);
|
assert(jcon->current == cmd);
|
||||||
connection_result(jcon, cmd->id, NULL, quote, -1, data);
|
connection_result(jcon, cmd->id, NULL, quote, code, data);
|
||||||
jcon->current = tal_free(cmd);
|
jcon->current = tal_free(cmd);
|
||||||
}
|
}
|
||||||
void command_fail(struct command *cmd, const char *fmt, ...)
|
void command_fail(struct command *cmd, const char *fmt, ...)
|
||||||
|
|
Loading…
Add table
Reference in a new issue