aboutsummaryrefslogtreecommitdiff
path: root/build/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-02 15:06:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-02 15:06:55 +0200
commit65dca85d0acc1ae69518e85b52a2877e38dc8c6d (patch)
tree7e2f1c227d5114d30b8c84e2d9f6af826a36066a /build/rule.cxx
parent48f8883de7b8fa348423b3baf262de08c98eba18 (diff)
Implement translation of meta/operations to natural language
Diffstat (limited to 'build/rule.cxx')
-rw-r--r--build/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/rule.cxx b/build/rule.cxx
index fb5af3f..413676b 100644
--- a/build/rule.cxx
+++ b/build/rule.cxx
@@ -125,7 +125,7 @@ namespace build
timestamp mp (mpt->mtime ());
if (mt < mp)
- fail << "no recipe to update target " << t <<
+ fail << "no recipe to " << diag_do (a, t) <<
info << "prerequisite " << pt << " is ahead of " << t
<< " by " << (mp - mt);
}
@@ -134,7 +134,7 @@ namespace build
// Otherwise we assume the prerequisite is newer if it was changed.
//
if (ts == target_state::changed)
- fail << "no recipe to update target " << t <<
+ fail << "no recipe to " << diag_do (a, t) <<
info << "prerequisite " << pt << " is ahead of " << t
<< " because it was updated";
}