Adress review

- Mention failed loot specifier during getting item from lottery
This commit is contained in:
juliancoffee 2021-09-26 20:19:24 +03:00
parent 8af4cf1a37
commit 9c2fc0d962

View File

@ -93,7 +93,7 @@ impl<T: AsRef<str>> LootSpec<T> {
match self { match self {
Self::Item(item) => Item::new_from_asset(item.as_ref()).map_or_else( Self::Item(item) => Item::new_from_asset(item.as_ref()).map_or_else(
|e| { |e| {
warn!(?e, "Invalid item path"); warn!(?e, "error while loading item: {}", item.as_ref());
None None
}, },
Option::Some, Option::Some,
@ -110,7 +110,7 @@ impl<T: AsRef<str>> LootSpec<T> {
Some(item) Some(item)
}, },
Err(e) => { Err(e) => {
warn!(?e, "Invalid item path"); warn!(?e, "error while loading item: {}", item.as_ref());
None None
}, },
} }