From fce2bf8086573a13eb39e1e8c65e615012486a58 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Aug 2019 20:05:43 +0300 Subject: Adapt to load_default_options() now throwing pair instead of system_error --- bpkg/bpkg.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bpkg') 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& 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. -- cgit v1.1