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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Sep 6 18:22:27 CDT 2013


Author: hategan
Date: 2013-09-06 18:22:27 -0500 (Fri, 06 Sep 2013)
New Revision: 7037

Modified:
   trunk/src/org/griphyn/vdl/karajan/Loader.java
Log:
nicer error messages if run fails to start

Modified: trunk/src/org/griphyn/vdl/karajan/Loader.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Loader.java	2013-09-04 18:59:33 UTC (rev 7036)
+++ trunk/src/org/griphyn/vdl/karajan/Loader.java	2013-09-06 23:22:27 UTC (rev 7037)
@@ -169,7 +169,6 @@
             }
         }
         catch (Exception e) {
-            e.printStackTrace();
             logger.debug("Detailed exception:", e);
             error("Could not start execution" + getMessages(e));
         }
@@ -256,7 +255,12 @@
         StringBuilder sb = new StringBuilder();
         while (e != null) {
             sb.append(":\n\t");
-            sb.append(e.toString());
+            if (e.getMessage() != null) {
+                sb.append(e.getMessage());
+            }
+            else {
+                sb.append(e.toString());
+            }
             e = e.getCause();
         }
         return sb.toString();




More information about the Swift-commit mailing list