Skip to content

Commit

Permalink
Update error message to include aborted status
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jul 28, 2021
1 parent 143d4e6 commit dd3dcec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFizzServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ function flushSubtree(
default: {
invariant(
false,
'Errored or already flushed boundaries should not be flushed again. This is a bug in React.',
'Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.',
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/error-codes/codes.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
"387": "Should have a current fiber. This is a bug in React.",
"388": "Expected to find a bailed out fiber. This is a bug in React.",
"389": "There can only be one root segment. This is a bug in React.",
"390": "Errored or already flushed boundaries should not be flushed again. This is a bug in React.",
"390": "Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.",
"391": "A previously unvisited boundary must have exactly one root segment. This is a bug in React.",
"392": "A root segment ID must have been assigned by now. This is a bug in React.",
"393": "Cache cannot be refreshed during server rendering.",
Expand Down

0 comments on commit dd3dcec

Please sign in to comment.