We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2462a2d + da1c75c commit b1bdf04Copy full SHA for b1bdf04
1 file changed
src/bootstrap/lib.rs
@@ -1288,6 +1288,9 @@ impl Build {
1288
t!(fs::create_dir_all(dstdir));
1289
drop(fs::remove_file(&dst));
1290
{
1291
+ if !src.exists() {
1292
+ panic!("Error: File \"{}\" not found!", src.display());
1293
+ }
1294
let mut s = t!(fs::File::open(&src));
1295
let mut d = t!(fs::File::create(&dst));
1296
io::copy(&mut s, &mut d).expect("failed to copy");
0 commit comments