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

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-02-25 14:45:41 +10:30
parent 7ca0000869
commit e3bdc32ee8

View File

@ -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;
}