From 9d33691cab6c3d3973e80dcb360799a8e24eebd4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 22 Apr 2014 22:21:40 -0400 Subject: [PATCH] TW-253 - Added details in debug mode, for unrecognized data (thanks to Kosta H). Note: does not close TW-253. --- ChangeLog | 1 + src/Task.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f30dfc259..44e1d9990 100644 --- a/ChangeLog +++ b/ChangeLog @@ -66,6 +66,7 @@ Sulfrian). - Added certificate hostname verification (thanks to Alexander Sulfrian). - Removed debugging code. +- Added details in debug mode, for unrecognized data (thanks to Kosta H). ------ current release --------------------------- diff --git a/src/Task.cpp b/src/Task.cpp index 21e90395a..faed352b7 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -854,6 +854,11 @@ void Task::parseLegacy (const std::string& line) break; default: + std::stringstream message; + message << "Invalid fileformat at line '" + << line + << "'"; + context.debug (message.str()); throw std::string (STRING_TASK_PARSE_UNREC_FF); break; }