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/install/rule.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'build2/install/rule.cxx') 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); -- cgit v1.1