aboutsummaryrefslogtreecommitdiff
path: root/butl/pager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'butl/pager.cxx')
-rw-r--r--butl/pager.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/butl/pager.cxx b/butl/pager.cxx
index 066cd7b..e327960 100644
--- a/butl/pager.cxx
+++ b/butl/pager.cxx
@@ -18,6 +18,7 @@
#include <utility> // move()
#include <system_error>
+#include <butl/utility> // operator<<(ostream, exception)
#include <butl/fdstream> // fdclose()
using namespace std;
@@ -147,7 +148,7 @@ namespace butl
{
if (e.child ())
{
- cerr << args[0] << ": unable to execute: " << e.what () << endl;
+ cerr << args[0] << ": unable to execute: " << e << endl;
exit (1);
}