aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/worker/worker.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index f2a3994..ce62ae9 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -17,7 +17,7 @@
#include <libbutl/b.hxx>
#include <libbutl/pager.hxx>
#include <libbutl/prompt.hxx>
-#include <libbutl/utility.hxx> // to_utf8()
+#include <libbutl/utility.hxx> // to_utf8(), eof()
#include <libbutl/timestamp.hxx>
#include <libbutl/filesystem.hxx>
#include <libbutl/string-parser.hxx>
@@ -463,12 +463,12 @@ run_cmd (step_id step,
{
// Skip on exception.
//
- ifdstream is (move (err_pipe.in), fdstream_mode::skip);
+ ifdstream is (move (err_pipe.in),
+ fdstream_mode::skip,
+ ifdstream::badbit);
- for (string l; is.peek () != ifdstream::traits_type::eof (); )
+ for (string l; !eof (getline (is, l)); )
{
- getline (is, l);
-
// Match the log line with the warning-detecting regular
// expressions until the first match.
//