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
@ -490,7 +490,9 @@ impl AssetSource {
|
|||||||
sender,
|
sender,
|
||||||
file_debounce_wait_time,
|
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(
|
#[cfg(any(
|
||||||
not(feature = "file_watcher"),
|
not(feature = "file_watcher"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user