mirror of https://github.com/apache/activemq.git
Display exceptions explicitly. Backported from 4.1 branch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@451585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1550b2a356
commit
097a4183ed
|
@ -67,7 +67,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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,6 +185,7 @@ public class CommandShellOutputFormatter implements OutputFormatter {
|
|||
*/
|
||||
public void printException(Exception e) {
|
||||
out.println("ERROR: " + e);
|
||||
e.printStackTrace(out);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue