From 1508c382589fe62b7d8829c9cd23ba5ab4bdf913 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Aug 2019 19:49:24 +0300 Subject: Adapt to load_default_options() now throwing pair instead of system_error --- bdep/bdep.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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& 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