Skip to content

Commit

Permalink
Comment logic checking files to be read exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
jku20 committed Aug 12, 2024
1 parent d6b7623 commit 32ad45a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fud2/fud-core/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ impl<'a> Run<'a> {
}) {
let stdout_files =
std::fs::File::open(self.plan.workdir.join(filename))
// The output file we're emitting to stdout should exist. If it doesn't,
// some op didn't produce the output file it claimed to.
.map_err(|e| if let std::io::ErrorKind::NotFound = e.kind() {
std::io::Error::new(
e.kind(),
Expand Down

0 comments on commit 32ad45a

Please sign in to comment.