diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 19:45:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 20:57:12 +0300 |
commit | 94e98b452130115fd76aea12b978d9e0bfd77a88 (patch) | |
tree | 9b9069e58e4fcc1c2cc0e1e9f67799a43287aaa8 /libbutl/default-options.mxx | |
parent | 7eff6adfe294038c723c8059a5993a533551f6cc (diff) |
Make load_default_options() to throw pair<path, system_error> instead of system_error
Diffstat (limited to 'libbutl/default-options.mxx')
-rw-r--r-- | libbutl/default-options.mxx | 8 |
1 files changed, 5 insertions, 3 deletions
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 <utility> // move(), forward() +#include <utility> // move(), forward(), make_pair() +#include <system_error> #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<path, system_error>` 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: // |