From 369e014b7aeb90419867e1426403e4ae2e171426 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Thu, 10 Aug 2017 14:26:34 +0100 Subject: COMPMID-417: Fix JSON printer Change-Id: I6cc3ff1535baa7abcee0972e0f1755ea6306e15b Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83514 Reviewed-by: Pablo Tello Tested-by: Kaizen --- framework/printers/JSONPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/printers/JSONPrinter.cpp b/framework/printers/JSONPrinter.cpp index 10cc911eba..099734e72f 100644 --- a/framework/printers/JSONPrinter.cpp +++ b/framework/printers/JSONPrinter.cpp @@ -105,7 +105,7 @@ void JSONPrinter::print_error(const std::exception &error) std::stringstream error_log; error_log.str(error.what()); - for(std::string line; !std::getline(error_log, line).eof();) + for(std::string line; !std::getline(error_log, line).fail();) { print_separator(_first_error); -- cgit v1.2.1