summaryrefslogtreecommitdiffstats
path: root/src/build_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_log.cc')
-rw-r--r--src/build_log.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/build_log.cc b/src/build_log.cc
index 06db0e6..ba09b46 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -52,6 +52,8 @@ void BuildLog::Close() {
bool BuildLog::Load(const string& path, string* err) {
FILE* file = fopen(path.c_str(), "r");
if (!file) {
+ if (errno == ENOENT)
+ return true;
*err = strerror(errno);
return false;
}