Path: blob/main/release-content/migration-guides/assets-insert-result.md
6592 views
---
---
In previous versions of Bevy, there was a bug where inserting an asset into an AssetId
whose handle was dropped would result in a panic. Now this is an error! Calling Assets::insert
and Assets::get_or_insert_with
returns an error you can inspect.
To match the previous behavior, just unwrap()
the result.