diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-06 03:24:33 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-09 21:44:22 +0300 |
commit | 9e2b4fd3bbc0c61bf6c84540c52869ec7d830718 (patch) | |
tree | 550c9edd5b29b164d7c8c2ac13111a9491495022 /build2/cc/windows-rpath.cxx | |
parent | c5d118cde064c09a416541a7f7e76d354552b2fd (diff) |
Make use of operator<<(ostream, exception)
Diffstat (limited to 'build2/cc/windows-rpath.cxx')
-rw-r--r-- | build2/cc/windows-rpath.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/cc/windows-rpath.cxx b/build2/cc/windows-rpath.cxx index aa1d740..35d83cc 100644 --- a/build2/cc/windows-rpath.cxx +++ b/build2/cc/windows-rpath.cxx @@ -311,7 +311,7 @@ namespace build2 if (c != EPERM && c != ENOSYS) { print ("ln -s"); - fail << "unable to create symlink " << l << ": " << e.what (); + fail << "unable to create symlink " << l << ": " << e; } try @@ -326,7 +326,7 @@ namespace build2 if (c != EPERM && c != ENOSYS) { print ("ln"); - fail << "unable to create hardlink " << l << ": " << e.what (); + fail << "unable to create hardlink " << l << ": " << e; } try @@ -337,7 +337,7 @@ namespace build2 catch (const system_error& e) { print ("cp"); - fail << "unable to create copy " << l << ": " << e.what (); + fail << "unable to create copy " << l << ": " << e; } } } @@ -371,7 +371,7 @@ namespace build2 } catch (const io_error& e) { - fail << "unable to write to " << am << ": " << e.what (); + fail << "unable to write to " << am << ": " << e; } } } |