aboutsummaryrefslogtreecommitdiff
path: root/butl/pager.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:36:27 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:36:27 +0300
commit615d333787c1d8dc08df5e30c60ec20600a74b85 (patch)
treec1eccc15aa77b8d300f275d2aef169452a3db628 /butl/pager.cxx
parent5a2fba169fc1bc3587d7d9b351d5c46a74f8f7b8 (diff)
Implement throw_generic_error() and throw_system_error()
Diffstat (limited to 'butl/pager.cxx')
-rw-r--r--butl/pager.cxx6
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));