From 94e98b452130115fd76aea12b978d9e0bfd77a88 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Aug 2019 19:45:45 +0300 Subject: Make load_default_options() to throw pair instead of system_error --- libbutl/default-options.mxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libbutl/default-options.mxx') diff --git a/libbutl/default-options.mxx b/libbutl/default-options.mxx index d7aa70b..62c7f92 100644 --- a/libbutl/default-options.mxx +++ b/libbutl/default-options.mxx @@ -7,7 +7,8 @@ #endif #ifndef __cpp_lib_modules_ts -#include // move(), forward() +#include // move(), forward(), make_pair() +#include #endif // Other includes. @@ -63,8 +64,9 @@ LIBBUTL_MODEXPORT namespace butl // // void (const path&, bool remote) // - // Throw std::system_error on the underlying OS error and pass through - // exceptions thrown by the options scanner/parser. + // Throw `pair` on the underlying OS error with the + // first half referring the filesystem entry the error relates to and pass + // through exceptions thrown by the options scanner/parser. // // Search order: // -- cgit v1.1