mirror of
https://github.com/GTNewHorizons/BetterCrashes.git
synced 2026-11-22 04:52:29 +00:00
log format errors as error level and pass exception directly
This commit is contained in:
1 parent
aaccad95a9
commit
cd00ee048d
1 file changed
+1
-1
@@ -24,7 +24,7 @@ public abstract class ItemStackMixin {
|
||||
return item.getItemStackDisplayName(stack);
|
||||
} catch (Exception e) {
|
||||
String unlocalizedName = item.getUnlocalizedName(stack);
|
||||
LOGGER.warn("Format error in display name for item '{}': {}", unlocalizedName, e.getMessage());
|
||||
LOGGER.error("Format error in display name for item '{}'", unlocalizedName, e);
|
||||
return unlocalizedName + " [FORMAT ERROR]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user