Skip to content

Commit

Permalink
add error message for ops not generating targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jku20 committed Aug 8, 2024
1 parent 381b4c5 commit 14ba1da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fud2/fud-core/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,15 @@ impl<'a> Run<'a> {
}
}) {
let stdout_files =
std::fs::File::open(self.plan.workdir.join(filename))?;
std::fs::File::open(self.plan.workdir.join(filename))
.map_err(|e| if let std::io::ErrorKind::NotFound = e.kind() {
std::io::Error::new(
e.kind(),
format!("{}\nHint: Check ops actually generate all of their targets.", e)
)
} else {
e
})?;
std::io::copy(
&mut std::io::BufReader::new(stdout_files),
&mut std::io::stdout(),
Expand Down

0 comments on commit 14ba1da

Please sign in to comment.