aboutsummaryrefslogtreecommitdiff
path: root/tests/dir-iterator
diff options
context:
space:
mode:
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;
}
}