diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-22 00:36:27 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-22 00:36:27 +0300 |
commit | 615d333787c1d8dc08df5e30c60ec20600a74b85 (patch) | |
tree | c1eccc15aa77b8d300f275d2aef169452a3db628 /butl/pager.cxx | |
parent | 5a2fba169fc1bc3587d7d9b351d5c46a74f8f7b8 (diff) |
Implement throw_generic_error() and throw_system_error()
Diffstat (limited to 'butl/pager.cxx')
-rw-r--r-- | butl/pager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/butl/pager.cxx b/butl/pager.cxx index e327960..fe59e5b 100644 --- a/butl/pager.cxx +++ b/butl/pager.cxx @@ -16,9 +16,9 @@ #include <cstring> // strchr() #include <utility> // move() -#include <system_error> -#include <butl/utility> // operator<<(ostream, exception) +#include <butl/utility> // operator<<(ostream, exception), + // throw_generic_error() #include <butl/fdstream> // fdclose() using namespace std; @@ -139,7 +139,7 @@ namespace butl p_.out_fd.reset (); if (pager != nullptr) - throw system_error (ECHILD, system_category ()); + throw_generic_error (ECHILD); } else os_.open (move (p_.out_fd)); |