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.
1 parent 58106a0 commit a399591Copy full SHA for a399591
build.rs
@@ -65,14 +65,24 @@ fn fail(msg: &str) -> ! {
65
fn dir_exists(location: &str) -> bool {
66
match fs::metadata(location) {
67
Ok(f) => f.is_dir(),
68
- Err(_) => false,
+ Err(err) => {
69
+ if err.kind() != ErrorKind::NotFound {
70
+ eprintln!("WARNING: failed to access `{}`: {}", location, err);
71
+ }
72
+ false
73
+ },
74
}
75
76
77
fn file_exists(location: &str) -> bool {
78
79
Ok(f) => f.is_file(),
80
81
82
83
84
85
86
87
88
0 commit comments