From 9a81c308f2d4217592630ef41a18a8998bd66f5c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 6 Jan 2017 03:26:03 +0300 Subject: Add operator<<(ostream, exception) --- butl/pager.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'butl/pager.cxx') 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 // move() #include +#include // operator<<(ostream, exception) #include // 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); } -- cgit v1.1