mirror of https://github.com/apache/activemq.git
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:
parent
be47d4066c
commit
0803e6308b
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue