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/install/rule.cxx | |
parent | c5d118cde064c09a416541a7f7e76d354552b2fd (diff) |
Make use of operator<<(ostream, exception)
Diffstat (limited to 'build2/install/rule.cxx')
-rw-r--r-- | build2/install/rule.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx index 1c21a1c..a368ac9 100644 --- a/build2/install/rule.cxx +++ b/build2/install/rule.cxx @@ -425,7 +425,7 @@ namespace build2 } catch (const system_error& e) { - fail << "invalid installation directory " << d << ": " << e.what (); + fail << "invalid installation directory " << d << ": " << e; } // While install -d will create all the intermediate components between @@ -477,7 +477,7 @@ namespace build2 } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); @@ -543,7 +543,7 @@ namespace build2 } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); @@ -592,7 +592,7 @@ namespace build2 } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); @@ -690,7 +690,7 @@ namespace build2 } catch (const system_error& e) { - fail << "invalid installation directory " << d << ": " << e.what (); + fail << "invalid installation directory " << d << ": " << e; } if (r) @@ -718,7 +718,7 @@ namespace build2 } catch (const system_error& e) { - fail << "unable to remove directory " << d << ": " << e.what (); + fail << "unable to remove directory " << d << ": " << e; } } else @@ -748,7 +748,7 @@ namespace build2 } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); @@ -791,7 +791,7 @@ namespace build2 } catch (const system_error& e) { - fail << "invalid installation path " << f << ": " << e.what (); + fail << "invalid installation path " << f << ": " << e; } path relf (relative (f)); @@ -818,7 +818,7 @@ namespace build2 } catch (const system_error& e) { - fail << "unable to remove file " << f << ": " << e.what (); + fail << "unable to remove file " << f << ": " << e; } } else @@ -847,7 +847,7 @@ namespace build2 } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); |