aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/GlueGenException.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-06 08:12:30 +0100
committerSven Gothel <[email protected]>2015-03-06 08:12:30 +0100
commit5f66fafec303de7d7904a499fefb8e3d023b61ae (patch)
treeeb119a77e297abab18f54f970d46b6e96067e012 /src/java/com/jogamp/gluegen/GlueGenException.java
parent1df503b8f14b385b35c6b50a4ff7ff03d1c3134f (diff)
Bug 1134 - GlueGenException.toString(): Produce a 'gcc' like/compatible error message
Diffstat (limited to 'src/java/com/jogamp/gluegen/GlueGenException.java')
-rw-r--r--src/java/com/jogamp/gluegen/GlueGenException.java5
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();