bevy/crates/bevy_asset
orph3usLyre a2d90a8533
ReadAssetBytesError::Io exposes failing path (#10450)
# Objective

Addresses #[10438](https://github.com/bevyengine/bevy/issues/10438)

The objective was to include the failing path in the error for the user
to see.

## Solution

Add a `path` field to the `ReadAssetBytesError::Io` variant to expose
the failing path in the error message.

## Migration Guide
- The `ReadAssetBytesError::Io` variant now contains two named fields
instead of converting from `std::io::Error`.
    1. `path`: The requested (failing) path (`PathBuf`)
    2. `source`: The source `std::io::Error`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2023-11-16 17:41:37 +00:00
..
macros Release 0.12 (#10362) 2023-11-04 17:24:23 +00:00
src ReadAssetBytesError::Io exposes failing path (#10450) 2023-11-16 17:41:37 +00:00
Cargo.toml Release 0.12 (#10362) 2023-11-04 17:24:23 +00:00