Skip to content

Commit

Permalink
Make loading warning for no file ext more descriptive (bevyengine#10119)
Browse files Browse the repository at this point in the history
# Objective

Currently, the asset loader outputs 
```
2023-10-14T15:11:09.328850Z  WARN bevy_asset::asset_server: no `AssetLoader` found
```
when user forgets to add an extension to a file. This is very confusing
behaviour, it sounds like there aren't any asset loaders existing.

## Solution

Add an extra message on the end when there are no file extensions.
  • Loading branch information
kyteware authored and Ray Redondo committed Jan 9, 2024
1 parent db898d5 commit ad03f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ fn format_missing_asset_ext(exts: &[String]) -> String {
exts.join(", ")
)
} else {
String::new()
" for file with no extension".to_string()
}
}

Expand Down

0 comments on commit ad03f9a

Please sign in to comment.