Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return an error when loading non-existent labels #9751

Merged
merged 3 commits into from
Oct 15, 2023

Conversation

cart
Copy link
Member

@cart cart commented Sep 10, 2023

Objective

Calling asset_server.load("scene.gltf#SomeLabel") will silently fail if SomeLabel does not exist.

Referenced in #9714

Solution

We now detect this case and return an error. I also slightly refactored load_internal to make the logic / dataflow much clearer.

@cart cart added A-Assets Load files from disk to use for things like images, models, and sounds C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Sep 10, 2023
@cart cart mentioned this pull request Sep 10, 2023
45 tasks
@cart cart added this to the 0.12 milestone Sep 10, 2023
Co-authored-by: Pascal Hertleif <killercup@gmail.com>
@cart cart enabled auto-merge October 15, 2023 18:22
@cart cart added this pull request to the merge queue Oct 15, 2023
Merged via the queue into bevyengine:main with commit 0294373 Oct 15, 2023
21 checks passed
ameknite pushed a commit to ameknite/bevy that referenced this pull request Nov 6, 2023
# Objective

Calling `asset_server.load("scene.gltf#SomeLabel")` will silently fail
if `SomeLabel` does not exist.

Referenced in bevyengine#9714 

## Solution

We now detect this case and return an error. I also slightly refactored
`load_internal` to make the logic / dataflow much clearer.

---------

Co-authored-by: Pascal Hertleif <killercup@gmail.com>
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

Calling `asset_server.load("scene.gltf#SomeLabel")` will silently fail
if `SomeLabel` does not exist.

Referenced in bevyengine#9714 

## Solution

We now detect this case and return an error. I also slightly refactored
`load_internal` to make the logic / dataflow much clearer.

---------

Co-authored-by: Pascal Hertleif <killercup@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Usability A targeted quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants