jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java
changeset 10419 12c063b39232
parent 5506 202f599c92aa
child 11365 05d995976571
--- a/jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java	Tue Aug 30 14:41:12 2011 +0100
+++ b/jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java	Tue Aug 30 11:53:11 2011 -0700
@@ -102,7 +102,7 @@
         try {
             loadAgentLibrary("instrument", args);
         } catch (AgentLoadException x) {
-            throw new InternalError("instrument library is missing in target VM");
+            throw new InternalError("instrument library is missing in target VM", x);
         } catch (AgentInitializationException x) {
             /*
              * Translate interesting errors into the right exception and
@@ -212,7 +212,7 @@
         try {
             return execute(cmd, args);
         } catch (AgentLoadException x) {
-            throw new InternalError("Should not get here");
+            throw new InternalError("Should not get here", x);
         }
     }