diff options
-rw-r--r-- | tests/manifest/driver.cxx | 3 | ||||
-rw-r--r-- | tests/package-version/driver.cxx | 3 | ||||
-rw-r--r-- | tests/repository-location/driver.cxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx index 9b6c31a..380bd04 100644 --- a/tests/manifest/driver.cxx +++ b/tests/manifest/driver.cxx @@ -5,6 +5,7 @@ #include <cassert> #include <iostream> +#include <butl/utility> // operator<<(ostream, exception) #include <butl/fdstream> #include <butl/manifest-parser> #include <butl/manifest-serializer> @@ -43,7 +44,7 @@ main (int argc, char* argv[]) } catch (const exception& e) { - cerr << e.what () << endl; + cerr << e << endl; return 1; } } diff --git a/tests/package-version/driver.cxx b/tests/package-version/driver.cxx index 3e80b2e..9753f76 100644 --- a/tests/package-version/driver.cxx +++ b/tests/package-version/driver.cxx @@ -9,6 +9,7 @@ #include <exception> #include <stdexcept> // invalid_argument +#include <butl/utility> // operator<<(ostream, exception) #include <butl/optional> #include <bpkg/manifest> @@ -332,7 +333,7 @@ main (int argc, char* argv[]) } catch (const exception& e) { - cerr << e.what () << endl; + cerr << e << endl; return 1; } } 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; } } |