aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/java_src/com
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2011-11-11 15:24:44 +0100
committerHenrik Nord <[email protected]>2011-11-15 11:17:29 +0100
commit334d63651255887a05c0dacebc370ed4b960dc89 (patch)
tree372b4b59e92c9206d408b2a102cefd59410c09f8 /lib/jinterface/java_src/com
parent6acdb64f208e26d78c7f55e6206b75b948e63daa (diff)
downloadotp-334d63651255887a05c0dacebc370ed4b960dc89.tar.gz
otp-334d63651255887a05c0dacebc370ed4b960dc89.tar.bz2
otp-334d63651255887a05c0dacebc370ed4b960dc89.zip
Improve error message when creating a too long OtpErlangAtom
Also print the value that we tried to use for the atom. This helps a lot when debugging and doesn't affect anything when the length is normal.
Diffstat (limited to 'lib/jinterface/java_src/com')
-rw-r--r--lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java
index 4d53447164..60eef7a126 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java
@@ -53,7 +53,7 @@ public class OtpErlangAtom extends OtpErlangObject implements Serializable,
if (atom.length() > maxAtomLength) {
throw new java.lang.IllegalArgumentException("Atom may not exceed "
- + maxAtomLength + " characters");
+ + maxAtomLength + " characters: " + atom);
}
this.atom = atom;
}