diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/GlueGenException.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/GlueGenException.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/GlueGenException.java b/src/java/com/jogamp/gluegen/GlueGenException.java index 3c52104..e8e06ec 100644 --- a/src/java/com/jogamp/gluegen/GlueGenException.java +++ b/src/java/com/jogamp/gluegen/GlueGenException.java @@ -83,7 +83,10 @@ public class GlueGenException extends JogampRuntimeException { public String toString() { final StringBuffer buf = new StringBuffer(); if (null != locus) { - buf.append(locus).append(": "); + buf.append(locus.toString(false)).append(": error: "); + if( null != locus.text && locus.text.length()>0 ) { + buf.append("text '").append(locus.text).append("': "); + } } buf.append(getLocalizedMessage()); final String message = buf.toString(); |