Report job errors even in no-progress mode.
authorCarl Hetherington <cth@carlh.net>
Sat, 21 Jul 2012 16:03:09 +0000 (17:03 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 21 Jul 2012 16:03:09 +0000 (17:03 +0100)
src/tools/makedcp.cc

index 7bf87da0c578a5a1230e48f7110abe82ecb2d2e0..fef0dd016a6847bac2bd6c1d19c980177289a70e 100644 (file)
@@ -160,6 +160,13 @@ main (int argc, char* argv[])
                        if (!(*i)->finished ()) {
                                all_done = false;
                        }
+
+                       if (!progress && (*i)->finished_in_error ()) {
+                               /* We won't see this error if we haven't been showing progress,
+                                  so show it now.
+                               */
+                               cout << (*i)->status() << "\n";
+                       }
                }
        }