From 9e2b4fd3bbc0c61bf6c84540c52869ec7d830718 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 6 Jan 2017 03:24:33 +0300 Subject: Make use of operator<<(ostream, exception) --- build2/file.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 83dcacf..cc1be77 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -107,7 +107,7 @@ namespace build2 } catch (const io_error& e) { - fail << "unable to read buildfile " << bf << ": " << e.what (); + fail << "unable to read buildfile " << bf << ": " << e; } } @@ -307,7 +307,7 @@ namespace build2 } catch (const io_error& e) { - fail << "unable to read buildfile " << bf << ": " << e.what () << endf; + fail << "unable to read buildfile " << bf << ": " << e << endf; } // Never reached. @@ -1087,7 +1087,7 @@ namespace build2 } catch (const io_error& e) { - fail (loc) << "unable to read buildfile " << es << ": " << e.what (); + fail (loc) << "unable to read buildfile " << es << ": " << e; } return names (); // Never reached. -- cgit v1.1