more verbose error (including path) when depfile fails to load
authorScott Graham <scottmg@chromium.org>
Thu, 24 Jan 2013 17:33:21 +0000 (09:33 -0800)
committerScott Graham <scottmg@chromium.org>
Thu, 24 Jan 2013 17:33:21 +0000 (09:33 -0800)
src/graph.cc

index 380ca7c..b000c48 100644 (file)
@@ -284,8 +284,10 @@ bool Edge::GetBindingBool(const string& key) {
 bool DependencyScan::LoadDepFile(Edge* edge, const string& path, string* err) {
   METRIC_RECORD("depfile load");
   string content = disk_interface_->ReadFile(path, err);
-  if (!err->empty())
+  if (!err->empty()) {
+    *err = "loading '" + path + "': " + *err;
     return false;
+  }
   // On a missing depfile: return false and empty *err.
   if (content.empty())
     return false;