Skip to content

Commit

Permalink
Add missing asset load error logs for load_folder and load_untyped (#…
Browse files Browse the repository at this point in the history
…10578)

# Objective

Fixes #10515 

## Solution

Add missing error logs.
  • Loading branch information
cart authored Nov 16, 2023
1 parent 46b8e90 commit c7f5cec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/bevy_asset/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c7f5cec

Please sign in to comment.