aboutsummaryrefslogtreecommitdiff
path: root/build2/filesystem.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 03:24:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-09 21:44:22 +0300
commit9e2b4fd3bbc0c61bf6c84540c52869ec7d830718 (patch)
tree550c9edd5b29b164d7c8c2ac13111a9491495022 /build2/filesystem.cxx
parentc5d118cde064c09a416541a7f7e76d354552b2fd (diff)
Make use of operator<<(ostream, exception)
Diffstat (limited to 'build2/filesystem.cxx')
-rw-r--r--build2/filesystem.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/build2/filesystem.cxx b/build2/filesystem.cxx
index 798f002..86bdff8 100644
--- a/build2/filesystem.cxx
+++ b/build2/filesystem.cxx
@@ -28,7 +28,7 @@ namespace build2
if (verb >= v)
text << "mkdir " << d;
- fail << "unable to create directory " << d << ": " << e.what () << endf;
+ fail << "unable to create directory " << d << ": " << e << endf;
}
if (ms == mkdir_status::success)
@@ -57,7 +57,7 @@ namespace build2
if (verb >= v)
text << "mkdir -p " << d;
- fail << "unable to create directory " << d << ": " << e.what () << endf;
+ fail << "unable to create directory " << d << ": " << e << endf;
}
if (ms == mkdir_status::success)
@@ -89,7 +89,7 @@ namespace build2
}
catch (const system_error& e)
{
- fail << "unable to remove directory " << d << ": " << e.what ();
+ fail << "unable to remove directory " << d << ": " << e;
}
return rmdir_status::success;
@@ -104,7 +104,7 @@ namespace build2
}
catch (const system_error& e)
{
- fail << "unable to stat path " << f << ": " << e.what () << endf;
+ fail << "unable to stat path " << f << ": " << e << endf;
}
}
@@ -117,7 +117,7 @@ namespace build2
}
catch (const system_error& e)
{
- fail << "unable to stat path " << d << ": " << e.what () << endf;
+ fail << "unable to stat path " << d << ": " << e << endf;
}
}
@@ -130,7 +130,7 @@ namespace build2
}
catch (const system_error& e)
{
- fail << "unable to stat path " << p << ": " << e.what () << endf;
+ fail << "unable to stat path " << p << ": " << e << endf;
}
}
@@ -143,7 +143,7 @@ namespace build2
}
catch (const system_error& e)
{
- fail << "unable to scan directory " << d << ": " << e.what () << endf;
+ fail << "unable to scan directory " << d << ": " << e << endf;
}
}
}