mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 01:24:30 +01:00
jsonrpc: Properly report code for detailed errors.
This commit is contained in:
@@ -518,7 +518,7 @@ static void command_fail_v(struct command *cmd,
|
||||
quote = tal_fmt(cmd, "\"%s\"", error);
|
||||
|
||||
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);
|
||||
}
|
||||
void command_fail(struct command *cmd, const char *fmt, ...)
|
||||
|
||||
Reference in New Issue
Block a user