mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Improve file watcher error msg (#12060)
# Objective When dealing with custom asset sources it can be a bit tricky to get asset roots combined with relative paths correct. It's even harder when it isn't mentioned which path was problematic. ## Solution Mention which path failed for the file watcher. Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com> Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
This commit is contained in:
parent
c641882cfe
commit
54e2b2ea07
1 changed files with 3 additions and 1 deletions
|
@ -490,7 +490,9 @@ impl AssetSource {
|
|||
sender,
|
||||
file_debounce_wait_time,
|
||||
)
|
||||
.expect("Failed to create file watcher"),
|
||||
.unwrap_or_else(|e| {
|
||||
panic!("Failed to create file watcher from path {path:?}, {e:?}")
|
||||
}),
|
||||
));
|
||||
#[cfg(any(
|
||||
not(feature = "file_watcher"),
|
||||
|
|
Loading…
Add table
Reference in a new issue