Skip to content

Commit

Permalink
add AssetLoadError::Other
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoJet committed Jun 5, 2024
1 parent d130e70 commit e880938
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_asset/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,9 @@ pub enum AssetLoadError {
label: String,
all_labels: Vec<String>,
},
/// An asset failed to load for an unspecified reason. This is useful for custom asset loading behavior.
#[error(transparent)]
Other(Arc<dyn std::error::Error + Send + Sync + 'static>),
}

#[derive(Error, Debug, Clone)]
Expand Down

0 comments on commit e880938

Please sign in to comment.