v2.0.0: improved formatter error handling

This commit is contained in:
Evan Debenham
2023-02-15 17:41:17 -05:00
parent bf8b037f3a
commit ba660888e1

View File

@@ -158,7 +158,7 @@ public class Messages {
try {
return String.format(Locale.ENGLISH, format, args);
} catch (IllegalFormatException e) {
ShatteredPixelDungeon.reportException( e );
ShatteredPixelDungeon.reportException( new Exception("formatting error for the string: " + format, e) );
return format;
}
}