Skip to content

Commit af87cf4

Browse files
Improve migration guide for changes to the default error handler (#21071)
# Objective - The removed feature was not mention - The writing was a bit wonky otherwise - Fixes #21042 ## Solution - Mention the feature and rationale explicitly, to aid in lazy CTRL+F migration - Improve the wording on the rest of the note.
1 parent c26a45e commit af87cf4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

release-content/migration-guides/per-world-error-handler.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ title: Changes to the default error handler mechanism
33
pull_requests: [18810]
44
---
55

6-
Worlds can now have different default error handlers, so there no longer is a global handler.
6+
We've improved the implementation of Bevy's default error handling.
7+
The performance overhead has been reduced, and as a result it is always enabled.
8+
The `configurable_error_handler` feature no longer exists: simply remove it from your list of enabled features.
79

8-
Replace uses of `GLOBAL_ERROR_HANDLER` with `App`'s `.set_error_handler(handler)`.
10+
Additionally, worlds can now have different default error handlers, so there is no longer a truly global handler.
11+
12+
Replace uses of `GLOBAL_ERROR_HANDLER` with `App::set_error_handler(handler)`.
913
For worlds that do not directly belong to an `App`/`SubApp`,
1014
insert the `DefaultErrorHandler(handler)` resource.

0 commit comments

Comments
 (0)