diff options
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc index 67e4634..45f6849 100644 --- a/src/build.cc +++ b/src/build.cc @@ -784,8 +784,11 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) { disk_interface_->RemoveFile(rspfile); if (scan_.build_log()) { - scan_.build_log()->RecordCommand(edge, start_time, end_time, - restat_mtime); + if (!scan_.build_log()->RecordCommand(edge, start_time, end_time, + restat_mtime)) { + *err = string("Error writing to build log: ") + strerror(errno); + return false; + } } if (!deps_type.empty() && !config_.dry_run) { |