aboutsummaryrefslogtreecommitdiff
path: root/build2/filesystem.txx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/filesystem.txx')
-rw-r--r--build2/filesystem.txx4
1 files changed, 2 insertions, 2 deletions
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 ();
}