Skip to content

[Merged by Bors] - Better error message for World::resource_scope#5727

Closed
NathanSWard wants to merge 1 commit intobevyengine:mainfrom
NathanSWard:nward/resource-scope-error-message
Closed

[Merged by Bors] - Better error message for World::resource_scope#5727
NathanSWard wants to merge 1 commit intobevyengine:mainfrom
NathanSWard:nward/resource-scope-error-message

Conversation

@NathanSWard
Copy link
Contributor

Objective

Solution

  • Add more context to the assert inside of World::resource_scope when the FnOnce param inserts the resource.

@NathanSWard NathanSWard added C-Usability A targeted quality-of-life change that makes Bevy easier to use A-ECS Entities, components, systems, and events labels Aug 17, 2022
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 18, 2022
@cart
Copy link
Member

cart commented Aug 18, 2022

bors r+

bors bot pushed a commit that referenced this pull request Aug 18, 2022
# Objective

- Fixes #5365 
- The `assert!()` when the resource from `World::resource_scope` is inserted into the world is not descriptive.

## Solution

- Add more context to the assert inside of `World::resource_scope` when the `FnOnce` param inserts the resource.
@bors
Copy link
Contributor

bors bot commented Aug 18, 2022

@bors bors bot changed the title Better error message for World::resource_scope [Merged by Bors] - Better error message for World::resource_scope Aug 18, 2022
@bors bors bot closed this Aug 18, 2022
maccesch pushed a commit to Synphonyte/bevy that referenced this pull request Sep 28, 2022
# Objective

- Fixes bevyengine#5365 
- The `assert!()` when the resource from `World::resource_scope` is inserted into the world is not descriptive.

## Solution

- Add more context to the assert inside of `World::resource_scope` when the `FnOnce` param inserts the resource.
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
# Objective

- Fixes bevyengine#5365 
- The `assert!()` when the resource from `World::resource_scope` is inserted into the world is not descriptive.

## Solution

- Add more context to the assert inside of `World::resource_scope` when the `FnOnce` param inserts the resource.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

- Fixes bevyengine#5365 
- The `assert!()` when the resource from `World::resource_scope` is inserted into the world is not descriptive.

## Solution

- Add more context to the assert inside of `World::resource_scope` when the `FnOnce` param inserts the resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ECS Entities, components, systems, and events C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nondescriptive panic message during resource_scope

4 participants