Skip to content

Commit 9223b0c

Browse files
Improve assertion error in build-manifest
1 parent b398a72 commit 9223b0c

File tree

1 file changed

+6
-1
lines changed
  • src/tools/build-manifest/src

1 file changed

+6
-1
lines changed

src/tools/build-manifest/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,12 @@ impl Builder {
547547
if target_name.contains(substr) {
548548
let t = Target::from_compressed_tar(self, &tarball_name!(fallback_target));
549549
// Fallbacks must always be available.
550-
assert!(t.available);
550+
assert!(
551+
t.available,
552+
"{} fallback for {} not available",
553+
tarball_name!(target_name),
554+
tarball_name!(fallback_target)
555+
);
551556
return t;
552557
}
553558
}

0 commit comments

Comments
 (0)