This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error diagnostics in 1.6.97


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)
       {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]