aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/target.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-03 12:52:46 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-03 12:52:46 -0600
commit101c96b03ecf180af986bc20b7161b0933ae47cf (patch)
tree93d0519443ce42ff2e181078e9e17a244f217741 /src/makefile/target.rs
parentaea101af88a68f9eb009097fd9b488dd008be2b8 (diff)
downloadmakers-101c96b03ecf180af986bc20b7161b0933ae47cf.tar.gz
makers-101c96b03ecf180af986bc20b7161b0933ae47cf.zip
add error indicator for target being updated
Diffstat (limited to 'src/makefile/target.rs')
-rw-r--r--src/makefile/target.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/makefile/target.rs b/src/makefile/target.rs
index 7c0d67c..549c95c 100644
--- a/src/makefile/target.rs
+++ b/src/makefile/target.rs
@@ -58,7 +58,8 @@ impl Target {
.wrap_err_with(|| format!("as a dependency for target {}", self.name))?;
}
if !self.is_up_to_date(file) {
- self.execute_commands(file)?;
+ self.execute_commands(file)
+ .wrap_err_with(|| format!("while updating target {}", self.name))?;
}
self.already_updated.set(true);