mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-28 22:56:29 +00:00
Update build.rs to print path when writing version_string.txt fails
This commit is contained in:
parent
75f14d23a3
commit
d2b6cc9185
3
build.rs
3
build.rs
@ -38,9 +38,10 @@ fn main() -> io::Result<()> {
|
|||||||
|
|
||||||
// We need to create these files in the Cargo output directory.
|
// We need to create these files in the Cargo output directory.
|
||||||
let out = PathBuf::from(env::var("OUT_DIR").unwrap());
|
let out = PathBuf::from(env::var("OUT_DIR").unwrap());
|
||||||
|
let path = &out.join("version_string.txt");
|
||||||
|
|
||||||
// Bland version text
|
// Bland version text
|
||||||
let mut f = File::create(&out.join("version_string.txt"))?;
|
let mut f = File::create(path).expect(&path.to_string_lossy());
|
||||||
writeln!(f, "{}", strip_codes(&ver))?;
|
writeln!(f, "{}", strip_codes(&ver))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user