Unverified Commit b9dcc6c3 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

[Turbopack] add stack traces of turbo tasks functions (#72329)

### What?

add stack traces to error in the new backend similar to the old backend

Closes PACK-3386
parent bed5082a
......@@ -88,13 +88,20 @@ impl UpdateOutputOperation {
}
Ok(Err(err)) => {
task.insert(CachedDataItem::Error {
value: SharedError::new(err),
value: SharedError::new(err.context(format!(
"Execution of {} failed",
ctx.get_task_description(task_id)
))),
});
OutputValue::Error
}
Err(panic) => {
task.insert(CachedDataItem::Error {
value: SharedError::new(anyhow!("Panic: {:?}", panic)),
value: SharedError::new(anyhow!(
"Panic in {}: {:?}",
ctx.get_task_description(task_id),
panic
)),
});
OutputValue::Panic
}
......
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