aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/module.cxx')
-rw-r--r--build/cxx/module.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/cxx/module.cxx b/build/cxx/module.cxx
index 495819d..7e6a211 100644
--- a/build/cxx/module.cxx
+++ b/build/cxx/module.cxx
@@ -71,11 +71,11 @@ namespace build
bool r (getline (is, ver));
- if (!pr.wait ())
- throw failed ();
-
if (!r)
fail << "unexpected output from " << cxx;
+
+ if (!pr.wait ())
+ throw failed ();
}
catch (const process_error& e)
{