From c7f5cec8beb08a48d880acafc4be36415c928fa4 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Thu, 16 Nov 2023 13:31:20 -0800 Subject: [PATCH] Add missing asset load error logs for load_folder and load_untyped (#10578) # Objective Fixes #10515 ## Solution Add missing error logs. --- crates/bevy_asset/src/server/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/bevy_asset/src/server/mod.rs b/crates/bevy_asset/src/server/mod.rs index fb9ff73a57..9ec46439e8 100644 --- a/crates/bevy_asset/src/server/mod.rs +++ b/crates/bevy_asset/src/server/mod.rs @@ -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();