v2.0.0: improved formatter error handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user