Author: ruschein
Date: 2010-09-27 15:54:47 -0700 (Mon, 27 Sep 2010)
New Revision: 22077

Modified:
   
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EqnParserImpl.java
Log:
Made error reporting more user friendly.

Modified: 
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EqnParserImpl.java
===================================================================
--- 
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EqnParserImpl.java
 2010-09-27 21:28:22 UTC (rev 22076)
+++ 
cytoscape/trunk/corelibs/equations/src/main/java/org/cytoscape/equations/EqnParserImpl.java
 2010-09-27 22:54:47 UTC (rev 22077)
@@ -100,7 +100,10 @@
                        final Token token = tokeniser.getToken();
                        final int tokenStartPos = tokeniser.getStartPos();
                        if (token != Token.EOS)
-                               throw new IllegalStateException(tokenStartPos + 
": premature end of expression: expected EOS, but found " + token + "!");
+                               throw new IllegalStateException(
+                                       tokenStartPos
+                                       + ": premature end of expression: 
expected end-of-string, but found "
+                                       + token + "!");
                } catch (final IllegalStateException e) {
                        lastErrorMessage = e.getMessage();
                        return false;

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to