We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5670d04 commit e70d3d8Copy full SHA for e70d3d8
src/tools/build-manifest/src/main.rs
@@ -392,8 +392,18 @@ impl Builder {
392
}
393
// Return the 2nd piece, the JSON.
394
Some(pieces.next().expect("malformed toolstate line").to_owned())
395
- })
396
- .expect("failed to find toolstate for rust commit");
+ });
+ let toolstate = match toolstate {
397
+ None => {
398
+ eprintln!(
399
+ "failed to find toolstate for rust commit {}; \
400
+ going on without that information",
401
+ rev,
402
+ );
403
+ return;
404
+ }
405
+ Some(toolstate) => toolstate,
406
+ };
407
let toolstate: HashMap<String, String> =
408
serde_json::from_str(&toolstate).expect("toolstate is malformed JSON");
409
// Mark some tools as missing based on toolstate.
0 commit comments