Skip to content

Commit

Permalink
only add context on error
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Feb 3, 2025
1 parent e241d97 commit d2b307c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion turbopack/crates/turbopack-core/src/module_graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,12 @@ impl Visit<SingleModuleGraphBuilderNode> for SingleModuleGraphBuilder<'_> {
Ok(match (module, chunkable_ref_target) {
(Some(module), None) => {
let refs_cell = primary_chunkable_referenced_modules(*module);
let refs = refs_cell.await.context(module.ident().to_string().await?)?;
let refs = match refs_cell.await {
Ok(refs) => refs,
Err(e) => {
return Err(e.context(module.ident().to_string().await?));
}
};
// TODO This is currently too slow
// let refs_issues = refs_cell
// .take_collectibles::<Box<dyn Issue>>()
Expand Down

0 comments on commit d2b307c

Please sign in to comment.