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