error diagnostics in 1.6.97

Bruce Lewis brlewis@alum.mit.edu
Fri Dec 20 10:36:00 GMT 2002


The patch below got me a more useful error message.

Index: kawa/standard/read.java
===================================================================
RCS file: /cvs/kawa/kawa/kawa/standard/read.java,v
retrieving revision 1.7
diff -u -r1.7 read.java
--- read.java	2000/05/29 05:45:07	1.7
+++ read.java	2002/01/22 18:17:06
@@ -27,7 +27,8 @@
       }
     catch (gnu.text.SyntaxException e)
       {
-	throw new RuntimeException("syntax error in read: " + e.toString ());
+	throw new RuntimeException("syntax error in read: "
+				   + e.getMessages().getErrors().toString());
       }
     catch (java.io.IOException e)
       {



More information about the Kawa mailing list