diff --git a/fud2/fud-core/src/run.rs b/fud2/fud-core/src/run.rs index b782b838f..b3fef72f6 100644 --- a/fud2/fud-core/src/run.rs +++ b/fud2/fud-core/src/run.rs @@ -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(),