diff options
Diffstat (limited to 'libjava/java/text/MessageFormat.java')
-rw-r--r-- | libjava/java/text/MessageFormat.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index 787bc6ffea6..171fffe6d25 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -283,7 +283,9 @@ public class MessageFormat extends Format } catch (NumberFormatException nfx) { - throw new IllegalArgumentException("Failed to parse integer string"); + IllegalArgumentException iae = new IllegalArgumentException(pat); + iae.initCause(nfx); + throw iae; } // Extract the element format. |