summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 2cdba80..d881280 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -203,8 +203,8 @@ bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface,
// Check that this depfile matches our output.
StringPiece opath = StringPiece(outputs_[0]->file_->path_);
if (opath != makefile.out_) {
- *err = "expected makefile to mention '" + outputs_[0]->file_->path_ + "', "
- "got '" + makefile.out_.AsString() + "'";
+ *err = "expected depfile '" + path + "' to mention '" +
+ outputs_[0]->file_->path_ + "', got '" + makefile.out_.AsString() + "'";
return false;
}