From 6fdf0738a77b6f0f830f105a09feaad772462128 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 18 Jan 2015 13:19:51 +0100 Subject: [PATCH] Hooks: Improve debugging messages for on-exit hooks --- src/Hooks.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 61936a3f8..92a28af57 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -203,7 +203,11 @@ void Hooks::onExit () { if (isJSON (*line)) { - context.error ("JSON output ignored: {1}"); + if (_debug >= 2) + context.error ("Line of JSON output ignored: " + (*line)); + + else if (_debug >= 1) + context.error ("Line(s) of JSON output ignored."); } else {