activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r451585 - in /incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console: command/StartCommand.java formatter/CommandShellOutputFormatter.java
Date Sat, 30 Sep 2006 11:58:54 GMT
Author: aco
Date: Sat Sep 30 04:58:53 2006
New Revision: 451585

URL: http://svn.apache.org/viewvc?view=rev&rev=451585
Log:
Display exceptions explicitly. Backported from 4.1 branch.

Modified:
    incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java
    incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/formatter/CommandShellOutputFormatter.java

Modified: incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java?view=diff&rev=451585&r1=451584&r2=451585
==============================================================================
--- incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java
(original)
+++ incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java
Sat Sep 30 04:58:53 2006
@@ -67,7 +67,7 @@
             // Prevent the main thread from exiting unless it is terminated elsewhere
             waitForShutdown();
         } catch (Exception e) {
-            GlobalWriter.printException(new RuntimeException("Failed to execute start task.
Reason: " + e));
+            GlobalWriter.printException(new RuntimeException("Failed to execute start task.
Reason: " + e, e));
             throw new Exception(e);
         }
     }

Modified: incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/formatter/CommandShellOutputFormatter.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/formatter/CommandShellOutputFormatter.java?view=diff&rev=451585&r1=451584&r2=451585
==============================================================================
--- incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/formatter/CommandShellOutputFormatter.java
(original)
+++ incubator/activemq/branches/activemq-4.0/activemq-console/src/main/java/org/apache/activemq/console/formatter/CommandShellOutputFormatter.java
Sat Sep 30 04:58:53 2006
@@ -185,6 +185,7 @@
      */
     public void printException(Exception e) {
         out.println("ERROR: " + e);
+        e.printStackTrace(out);
     }
 
     /**



Mime
View raw message