aboutsummaryrefslogtreecommitdiff
path: root/build2/function.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/function.cxx')
-rw-r--r--build2/function.cxx5
1 files changed, 2 insertions, 3 deletions
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;
}