Commit 2f5343fa authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

Turbopack: shorter error for ChunkGroupInfo::get_index_of (#92814)

parent 2ad9d3fb
...@@ -108,6 +108,7 @@ impl ChunkGroupInfo { ...@@ -108,6 +108,7 @@ impl ChunkGroupInfo {
if let Some(idx) = self.chunk_groups.get_index_of(&chunk_group) { if let Some(idx) = self.chunk_groups.get_index_of(&chunk_group) {
Ok(Vc::cell(idx)) Ok(Vc::cell(idx))
} else { } else {
if cfg!(debug_assertions) {
bail!( bail!(
"Couldn't find chunk group index for {} in {}", "Couldn't find chunk group index for {} in {}",
chunk_group.debug_str(self).await?, chunk_group.debug_str(self).await?,
...@@ -118,6 +119,9 @@ impl ChunkGroupInfo { ...@@ -118,6 +119,9 @@ impl ChunkGroupInfo {
.await? .await?
.join(", ") .join(", ")
); );
} else {
bail!("Couldn't find chunk group index")
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment