From 0803e6308bd7936ed39beb4822247d7929240c41 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Mon, 3 Jul 2006 13:29:50 +0000 Subject: [PATCH] preserve the exception stack trace when the activemq script fails - see AMQ-790 for detail git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418765 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/console/command/StartCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java b/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java index e777adfaa6..4047192f26 100644 --- a/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java +++ b/activemq-console/src/main/java/org/apache/activemq/console/command/StartCommand.java @@ -66,7 +66,7 @@ public class StartCommand extends AbstractCommand { // 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); } }