Hooks: Improve debugging messages for on-exit hooks

This commit is contained in:
Tomas Babej 2015-01-18 13:19:51 +01:00 committed by Paul Beckingham
parent 41003fc78b
commit 6fdf0738a7

View file

@ -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
{