From e3bdc32ee839031d60c705b2096a23b6dd6b63e1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 25 Feb 2019 14:45:41 +1030 Subject: [PATCH] plugin: give *some* clue in the logs of getmanifest raises an exception! Signed-off-by: Rusty Russell --- lightningd/plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightningd/plugin.c b/lightningd/plugin.c index 4c9258bd4..91e39cbe3 100644 --- a/lightningd/plugin.c +++ b/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; }