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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Mon Jul 2 11:41:05 CDT 2012


Author: hategan
Date: 2012-07-02 11:41:04 -0500 (Mon, 02 Jul 2012)
New Revision: 5815

Modified:
   trunk/src/org/griphyn/vdl/karajan/Monitor.java
Log:
trap exceptions when getting variable type (see bug 795) so that the hang checker prints useful stuff, but also dump trapped exceptions

Modified: trunk/src/org/griphyn/vdl/karajan/Monitor.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Monitor.java	2012-06-23 20:44:26 UTC (rev 5814)
+++ trunk/src/org/griphyn/vdl/karajan/Monitor.java	2012-07-02 16:41:04 UTC (rev 5815)
@@ -233,7 +233,13 @@
 				catch (Exception e) {
 				    value = "<exception>";
 				}
-				ps.println(handle.getType() + " " + handle.getDisplayableName() + " " + value + " " + f);
+				try {
+				    ps.println(handle.getType() + " " + handle.getDisplayableName() + " " + value + " " + f);
+				}
+				catch (Exception e) {
+				    ps.println(handle.getDisplayableName() + " - error");
+				    e.printStackTrace(ps);
+				}
 			}
 			ps.println("----");
 		}




More information about the Swift-commit mailing list