Skip to content

Commit dd3dcec

Browse files
committed
Update error message to include aborted status
1 parent 143d4e6 commit dd3dcec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-server/src/ReactFizzServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ function flushSubtree(
15781578
default: {
15791579
invariant(
15801580
false,
1581-
'Errored or already flushed boundaries should not be flushed again. This is a bug in React.',
1581+
'Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.',
15821582
);
15831583
}
15841584
}

scripts/error-codes/codes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
"387": "Should have a current fiber. This is a bug in React.",
379379
"388": "Expected to find a bailed out fiber. This is a bug in React.",
380380
"389": "There can only be one root segment. This is a bug in React.",
381-
"390": "Errored or already flushed boundaries should not be flushed again. This is a bug in React.",
381+
"390": "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.",
382382
"391": "A previously unvisited boundary must have exactly one root segment. This is a bug in React.",
383383
"392": "A root segment ID must have been assigned by now. This is a bug in React.",
384384
"393": "Cache cannot be refreshed during server rendering.",

0 commit comments

Comments
 (0)