mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
Add error messages in case of problem in build script
This commit is contained in:
parent
b67b96a49e
commit
e5ed14327b
@ -19,7 +19,7 @@ fn main() {
|
||||
};
|
||||
|
||||
if let Err(_) = fs::hard_link(&path, &out_file) {
|
||||
fs::copy(&path, &out_file).unwrap();
|
||||
fs::copy(&path, &out_file).expect("failed to copy executable");
|
||||
}
|
||||
|
||||
// TODO: check the hash of the files to make sure that they are not altered
|
||||
@ -32,7 +32,7 @@ fn main() {
|
||||
}
|
||||
#[cfg(not(unix))] fn permissions() -> Option<Permissions> { None }
|
||||
if let Some(permissions) = permissions() {
|
||||
fs::set_permissions(&out_file, permissions).unwrap();
|
||||
fs::set_permissions(&out_file, permissions).expect("failed to set permissions");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user