Browse Source

jsonrpc: Properly report code for detailed errors.

ppa-0.6.1
ZmnSCPxj 7 years ago
committed by Rusty Russell
parent
commit
4ef168cd97
  1. 2
      lightningd/jsonrpc.c

2
lightningd/jsonrpc.c

@ -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…
Cancel
Save