Unverified Commit a406b7a3 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turbopack: use bail instead of panic (#82745)

This behaves more gracefully due to eventual consistency
parent 508b1a46
...@@ -2693,7 +2693,7 @@ async fn resolve_into_package( ...@@ -2693,7 +2693,7 @@ async fn resolve_into_package(
}; };
let Some(path) = path.as_constant_string() else { let Some(path) = path.as_constant_string() else {
todo!("pattern into an exports field is not implemented yet"); bail!("pattern into an exports field is not implemented yet");
}; };
let path = if path == "/" { let path = if path == "/" {
......
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