[Swift-commit] r7135 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Oct 4 17:45:30 CDT 2013


Author: hategan
Date: 2013-10-04 17:45:30 -0500 (Fri, 04 Oct 2013)
New Revision: 7135

Modified:
   trunk/src/org/griphyn/vdl/karajan/Loader.java
Log:
better error messages on karajan compilation exceptions

Modified: trunk/src/org/griphyn/vdl/karajan/Loader.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Loader.java	2013-10-04 16:41:04 UTC (rev 7134)
+++ trunk/src/org/griphyn/vdl/karajan/Loader.java	2013-10-04 22:45:30 UTC (rev 7135)
@@ -255,7 +255,11 @@
         StringBuilder sb = new StringBuilder();
         while (e != null) {
             sb.append(":\n\t");
-            if (e.getMessage() != null) {
+            if (e instanceof org.globus.cog.karajan.analyzer.CompilationException) {
+                sb.append(e.getMessage() + ", " + 
+                    ((org.globus.cog.karajan.analyzer.CompilationException) e).getLocation());
+            }
+            else if (e.getMessage() != null) {
                 sb.append(e.getMessage());
             }
             else {




More information about the Swift-commit mailing list