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:
Carter Anderson 2023-11-16 13:31:20 -08:00
parent efa8c22ff8
commit 0dee514e61

View file

@ -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();