more correct error msg
This commit is contained in:
parent
2cf7c29675
commit
224378cc6a
@ -384,7 +384,8 @@ impl Builder {
|
|||||||
File::open(self.input.join("toolstates-linux.json")).ok()
|
File::open(self.input.join("toolstates-linux.json")).ok()
|
||||||
.and_then(|f| serde_json::from_reader(&f).ok());
|
.and_then(|f| serde_json::from_reader(&f).ok());
|
||||||
let toolstates = toolstates.unwrap_or_else(|| {
|
let toolstates = toolstates.unwrap_or_else(|| {
|
||||||
println!("WARNING: `toolstates-linux.json` missing; assuming all tools failed");
|
println!("WARNING: `toolstates-linux.json` missing/malformed; \
|
||||||
|
assuming all tools failed");
|
||||||
HashMap::default() // Use empty map if anything went wrong.
|
HashMap::default() // Use empty map if anything went wrong.
|
||||||
});
|
});
|
||||||
// Mark some tools as missing based on toolstate.
|
// Mark some tools as missing based on toolstate.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user