aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-08-10 14:26:34 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit369e014b7aeb90419867e1426403e4ae2e171426 (patch)
treefb8d09089e3bf82119d6d799a59b0e4cdebaaa79
parent5b44a7347c9632ee78ba1fc1771a6457ac1bca14 (diff)
downloadComputeLibrary-369e014b7aeb90419867e1426403e4ae2e171426.tar.gz
COMPMID-417: Fix JSON printer
Change-Id: I6cc3ff1535baa7abcee0972e0f1755ea6306e15b Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83514 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
-rw-r--r--framework/printers/JSONPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
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);