mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Add missing asset load error logs for load_folder and load_untyped (#10578)
# Objective Fixes #10515 ## Solution Add missing error logs.
This commit is contained in:
parent
efa8c22ff8
commit
0dee514e61
1 changed files with 8 additions and 2 deletions
|
@ -349,7 +349,10 @@ impl AssetServer {
|
|||
)
|
||||
.into(),
|
||||
}),
|
||||
Err(_) => server.send_asset_event(InternalAssetEvent::Failed { id }),
|
||||
Err(err) => {
|
||||
error!("{err}");
|
||||
server.send_asset_event(InternalAssetEvent::Failed { id });
|
||||
}
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
|
@ -652,7 +655,10 @@ impl AssetServer {
|
|||
)
|
||||
.into(),
|
||||
}),
|
||||
Err(_) => server.send_asset_event(InternalAssetEvent::Failed { id }),
|
||||
Err(err) => {
|
||||
error!("Failed to load folder. {err}");
|
||||
server.send_asset_event(InternalAssetEvent::Failed { id });
|
||||
},
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
|
|
Loading…
Reference in a new issue