mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +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
46b8e904f4
commit
c7f5cec8be
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