aboutsummaryrefslogtreecommitdiff
path: root/tests/dir-iterator
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 03:26:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-09 21:31:14 +0300
commit9a81c308f2d4217592630ef41a18a8998bd66f5c (patch)
treee5ab252f90d1b3aa2a2f2775f0f36e569d48b4a5 /tests/dir-iterator
parent39101a4383d38c1217c44b999a6e3bd199727c60 (diff)
Add operator<<(ostream, exception)
Diffstat (limited to 'tests/dir-iterator')
-rw-r--r--tests/dir-iterator/driver.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/dir-iterator/driver.cxx b/tests/dir-iterator/driver.cxx
index 62f051b..d3d25b8 100644
--- a/tests/dir-iterator/driver.cxx
+++ b/tests/dir-iterator/driver.cxx
@@ -8,6 +8,7 @@
#include <butl/path>
#include <butl/path-io>
+#include <butl/utility> // operator<<(ostream, exception)
#include <butl/filesystem>
using namespace std;
@@ -62,7 +63,7 @@ main (int argc, const char* argv[])
}
catch (const exception& e)
{
- cerr << argv[1] << ": " << e.what () << endl;
+ cerr << argv[1] << ": " << e << endl;
return 1;
}
}