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/filesystem.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/filesystem.txx') diff --git a/build2/filesystem.txx b/build2/filesystem.txx index 5a4838e..708c75e 100644 --- a/build2/filesystem.txx +++ b/build2/filesystem.txx @@ -37,7 +37,7 @@ namespace build2 catch (const system_error& e) { print (); - error << "unable to remove file " << f << ": " << e.what (); + error << "unable to remove file " << f << ": " << e; throw failed (); } @@ -78,7 +78,7 @@ namespace build2 catch (const system_error& e) { print (); - error << "unable to remove directory " << d << ": " << e.what (); + error << "unable to remove directory " << d << ": " << e; throw failed (); } -- cgit v1.1