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 committed by GitHub
parent 46b8e904f4
commit c7f5cec8be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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