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/function.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build2/function.cxx') diff --git a/build2/function.cxx b/build2/function.cxx index c3a08c1..eeb332f 100644 --- a/build2/function.cxx +++ b/build2/function.cxx @@ -249,9 +249,8 @@ namespace build2 diag_record dr (fail); dr << "invalid argument"; - const char* w (e.what ()); - if (*w != '\0') - dr << ": " << w; + if (*e.what () != '\0') + dr << ": " << e; dr << endf; } -- cgit v1.1