-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX lts] Cleans up the DebugRenderTree more thoroughly on errors
The DebugRenderTree is currently left in a bad state after an error occurs during render. Specifically, if an error occurs and we call `capture` on the tree, it will throw errors because the state hasn't been setup correctly. In real world development, this can happen whenever the Ember Inspector is open and an app has errored, as the inspector polls regardless of the state of the app and doesn't take error state into account. This results in a follow on error to the original error, which is confusing and can make it more difficult to debug. This fixes the issue by removing the affected root altogether, so that it will not attempt to capture in the first place.
- Loading branch information
Chris Garrett
committed
Oct 15, 2020
1 parent
da458df
commit 64902de
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters