projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8e9b1
)
more verbose error (including path) when depfile fails to load
author
Scott Graham
<scottmg@chromium.org>
Thu, 24 Jan 2013 17:33:21 +0000
(09:33 -0800)
committer
Scott Graham
<scottmg@chromium.org>
Thu, 24 Jan 2013 17:33:21 +0000
(09:33 -0800)
src/graph.cc
patch
|
blob
|
history
diff --git
a/src/graph.cc
b/src/graph.cc
index
380ca7c
..
b000c48
100644
(file)
--- a/
src/graph.cc
+++ b/
src/graph.cc
@@
-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;