mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-08 15:44:19 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user