aboutsummaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-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);