aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-09 18:29:37 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-13 13:03:19 +0300
commitdc1b424b75f200a716c3bd9b91891cf7f818ad32 (patch)
tree6c1625d8a52ad7ddc642da72f3c1f8896b617ff2 /build2/b.cxx
parentc49a4f0aeefd04ea6a269693d47d1e9d91ed8ad7 (diff)
Fix crashing on unhandled system_error thrown by file_exists()
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 6d6723a..8031559 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -437,7 +437,7 @@ main (int argc, char* argv[])
// if it doesn't, the diagnostics could be confusing (e.g.,
// unknown operation because we don't load bootstrap.build).
//
- if (!dir_exists (src_base))
+ if (!exists (src_base))
fail << "src_base directory " << src_base << " does not exist";
if (src_base.relative ())
@@ -841,7 +841,7 @@ main (int argc, char* argv[])
// If we were guessing src_base, check that the buildfile
// exists and if not, issue more detailed diagnostics.
//
- if (guessing && bf.string () != "-" && !file_exists (bf))
+ if (guessing && bf.string () != "-" && !exists (bf))
fail << bf << " does not exist"
<< info << "consider explicitly specifying src_base "
<< "for " << tn;