v2.0.0: improved formatter error handling
This commit is contained in:
@@ -158,7 +158,7 @@ public class Messages {
|
|||||||
try {
|
try {
|
||||||
return String.format(Locale.ENGLISH, format, args);
|
return String.format(Locale.ENGLISH, format, args);
|
||||||
} catch (IllegalFormatException e) {
|
} catch (IllegalFormatException e) {
|
||||||
ShatteredPixelDungeon.reportException( e );
|
ShatteredPixelDungeon.reportException( new Exception("formatting error for the string: " + format, e) );
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user