[Swift-commit] r5860 - trunk/src/org/griphyn/vdl/mapping
    hategan at ci.uchicago.edu 
    hategan at ci.uchicago.edu
       
    Thu Jul 19 01:00:02 CDT 2012
    
    
  
Author: hategan
Date: 2012-07-19 01:00:02 -0500 (Thu, 19 Jul 2012)
New Revision: 5860
Modified:
   trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java
Log:
more user friendly error when an invalid array index is encountered
Modified: trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java	2012-07-19 05:59:03 UTC (rev 5859)
+++ trunk/src/org/griphyn/vdl/mapping/ArrayDataNode.java	2012-07-19 06:00:02 UTC (rev 5860)
@@ -141,7 +141,7 @@
                         fields, path.butFirst());
                 }
                 catch (NoSuchFieldException e) {
-                    throw new InvalidPathException(path, this);
+                    throw new InvalidPathException("Invalid index (" + path.getKey(0) + ") for " + this);
                 }
             }
         }
    
    
More information about the Swift-commit
mailing list