aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-16 19:49:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-16 19:49:24 +0300
commit1508c382589fe62b7d8829c9cd23ba5ab4bdf913 (patch)
tree206ca37dd638438cdc5c30fe118b32f60329dd19
parent0fb8bc472aafaacb6bff3b9f6a3af2df1aa8dc8a (diff)
Adapt to load_default_options() now throwing pair<path, system_error> instead of system_error
-rw-r--r--bdep/bdep.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/bdep/bdep.cxx b/bdep/bdep.cxx
index 7e6435f..c8fe18b 100644
--- a/bdep/bdep.cxx
+++ b/bdep/bdep.cxx
@@ -231,9 +231,14 @@ init (const common_options& co,
}),
o);
}
+ catch (const pair<path, system_error>& e)
+ {
+ fail << "unable to load default options files: " << e.first << ": "
+ << e.second;
+ }
catch (const system_error& e)
{
- fail << "unable to load default options files: " << e;
+ fail << "unable to obtain home directory: " << e;
}
// Global initializations.