Browse Source

plugin: give *some* clue in the logs of getmanifest raises an exception!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
pr-2391
Rusty Russell 6 years ago
parent
commit
e3bdc32ee8
  1. 4
      lightningd/plugin.c

4
lightningd/plugin.c

@ -810,7 +810,9 @@ static void plugin_manifest_cb(const char *buffer,
resulttok = json_get_member(buffer, toks, "result");
if (!resulttok || resulttok->type != JSMN_OBJECT) {
plugin_kill(plugin,
"\"getmanifest\" result is not an object");
"\"getmanifest\" result is not an object: %.*s",
toks[0].end - toks[0].start,
buffer + toks[0].start);
return;
}

Loading…
Cancel
Save