more correct error msg

This commit is contained in:
Ralf Jung 2019-11-04 10:10:40 +01:00
parent 2cf7c29675
commit 224378cc6a

View File

@ -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.