Browse Source

lightning-cli: don't print junk on error.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
ca9d775f9a
  1. 2
      daemon/lightning-cli.c

2
daemon/lightning-cli.c

@ -132,6 +132,8 @@ int main(int argc, char *argv[])
if (i < 0)
err(ERROR_TALKING_TO_LIGHTNINGD, "reading response");
resp[off] = '\0';
/* Parsing huge results is too slow, so hack fastpath common case */
result_end = tal_fmt(ctx, ", \"error\" : null, \"id\" : \"%s\" }\n",
idstr);

Loading…
Cancel
Save