aboutsummaryrefslogtreecommitdiff
path: root/build/context.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
commiteb264e1892c2a1379fa3bcab9aefea219e8e7138 (patch)
tree1031f859076b2d8f117a2948ec1184a5536f9cbc /build/context.txx
parent55471ef43695408bae2237374be4637c302d1c87 (diff)
Rework diagnostics verbosity, add quiet mode/option
Diffstat (limited to 'build/context.txx')
-rw-r--r--build/context.txx18
1 files changed, 9 insertions, 9 deletions
diff --git a/build/context.txx b/build/context.txx
index eb1568c..a0660f9 100644
--- a/build/context.txx
+++ b/build/context.txx
@@ -27,9 +27,9 @@ namespace build
}
catch (const std::system_error& e)
{
- if (verb)
+ if (verb >= 2)
text << "rm " << f;
- else
+ else if (verb)
text << "rm " << t;
fail << "unable to remove file " << f << ": " << e.what ();
@@ -37,9 +37,9 @@ namespace build
if (rs == rmfile_status::success)
{
- if (verb)
+ if (verb >= 2)
text << "rm " << f;
- else
+ else if (verb)
text << "rm " << t;
}
@@ -66,9 +66,9 @@ namespace build
}
catch (const std::system_error& e)
{
- if (verb)
+ if (verb >= 2)
text << "rmdir " << d;
- else
+ else if (verb)
text << "rmdir " << t;
fail << "unable to remove directory " << d << ": " << e.what ();
@@ -78,16 +78,16 @@ namespace build
{
case rmdir_status::success:
{
- if (verb)
+ if (verb >= 2)
text << "rmdir " << d;
- else
+ else if (verb)
text << "rmdir " << t;
break;
}
case rmdir_status::not_empty:
{
- if (verb)
+ if (verb >= 2)
text << "directory " << d << " is "
<< (w ? "current working directory" : "not empty")
<< ", not removing";