Skip to content

Commit 7f29f17

Browse files
authored
Turbopack: add more details to the graph panic (#84143)
### What? add more details to the panic message
1 parent 49b8349 commit 7f29f17

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/operation/aggregation_update.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ impl AggregationUpdateQueue {
14191419
if retry > MAX_RETRIES {
14201420
panic!(
14211421
"inner_of_uppers_lost_follower is not able to remove follower \
1422-
{lost_follower_id:?} ({}) from {} as they don't exist as upper or follower \
1422+
{lost_follower_id} ({}) from {} as they don't exist as upper or follower \
14231423
edges",
14241424
ctx.get_task_description(lost_follower_id),
14251425
upper_ids
@@ -1577,9 +1577,14 @@ impl AggregationUpdateQueue {
15771577
retry += 1;
15781578
if retry > MAX_RETRIES {
15791579
panic!(
1580-
"inner_of_upper_lost_followers is not able to remove followers \
1581-
{lost_follower_ids:?} from {upper_id:?} as they don't exist as upper or \
1582-
follower edges"
1580+
"inner_of_upper_lost_followers is not able to remove followers {} from \
1581+
{upper_id} ({}) as they don't exist as upper or follower edges",
1582+
lost_follower_ids
1583+
.iter()
1584+
.map(|id| format!("{} ({})", id, ctx.get_task_description(*id)))
1585+
.collect::<Vec<_>>()
1586+
.join(", "),
1587+
ctx.get_task_description(upper_id),
15831588
)
15841589
}
15851590
self.push(AggregationUpdateJob::InnerOfUpperLostFollowers {

0 commit comments

Comments
 (0)