diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 20:05:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 20:05:43 +0300 |
commit | fce2bf8086573a13eb39e1e8c65e615012486a58 (patch) | |
tree | ad17beb5bf761a54ecfd7a4cf618ee1d10e93faa | |
parent | 95e1161d9907b08d52db01310779b6fa19c9b6f3 (diff) |
Adapt to load_default_options() now throwing pair<path, system_error> instead of system_error
-rw-r--r-- | bpkg/bpkg.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index be38297..0da8c58 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -246,9 +246,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. |