aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 03:25:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-07 14:39:05 +0300
commit47bfb3d1f9b409f82ebc7d15c62b0755cabde05f (patch)
treecd40db97c543d7595638492c2369285df5126486 /tests/repository-location/driver.cxx
parentc24eeeb246c5a2b513ed08b155b2bce742324d06 (diff)
Make use of operator<<(ostream, exception)
Diffstat (limited to 'tests/repository-location/driver.cxx')
-rw-r--r--tests/repository-location/driver.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx
index da7cea2..953193a 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -9,6 +9,7 @@
#include <exception>
#include <stdexcept> // invalid_argument
+#include <butl/utility> // operator<<(ostream, exception)
#include <butl/optional>
#include <butl/manifest-parser>
@@ -622,7 +623,7 @@ main (int argc, char* argv[])
}
catch (const exception& e)
{
- cerr << e.what () << endl;
+ cerr << e << endl;
return 1;
}
}