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
This commit is contained in:
James Strachan 2006-07-03 13:29:50 +00:00
parent be47d4066c
commit 0803e6308b
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class StartCommand extends AbstractCommand {
// Prevent the main thread from exiting unless it is terminated elsewhere // Prevent the main thread from exiting unless it is terminated elsewhere
waitForShutdown(); waitForShutdown();
} catch (Exception e) { } 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); throw new Exception(e);
} }
} }