mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Hooks: Improve debugging messages for on-exit hooks
This commit is contained in:
parent
41003fc78b
commit
6fdf0738a7
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue