Path: blob/main/release-content/migration-guides/labeled_asset_scope_errors.md
6592 views
---
---
labeled_asset_scope
now returns a user-specified error type based on their closure. Previously, users would need to fall back to begin_labeled_asset
and add_loaded_labeled_asset
to handle errors, which is more error-prone. Consider migrating to use labeled_asset_scope
if this was you!
However, labeled_asset_scope
closures that don't return errors now needs to A) return Ok, and B) specify an error type.
If your code previously looked like this:
You can migrate it to: