aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-20 13:01:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-20 13:01:46 +0200
commita82cdb8fd9ba02034d296769772cdf81244da66a (patch)
tree2cd5fb0211984716780ce5fad18c19d7c4d9a794 /build/context.cxx
parentc775a7f28a56ef96f097e677434eceec9d8f2cdf (diff)
Automatically decide when to print relative/absolute paths
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/build/context.cxx b/build/context.cxx
index 958fb98..1bd5033 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -58,22 +58,12 @@ namespace build
}
catch (const system_error& e)
{
- if (verb >= 1)
- text << "mkdir " << d.string ();
- else
- text << "mkdir " << d;
-
- fail << "unable to create directory " << d.string () << ": "
- << e.what ();
+ text << "mkdir " << d;
+ fail << "unable to create directory " << d << ": " << e.what ();
}
if (ms == mkdir_status::success)
- {
- if (verb >= 1)
- text << "mkdir " << d.string ();
- else
- text << "mkdir " << d;
- }
+ text << "mkdir " << d;
return ms;
}