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:
Adrian T. Co 2006-09-30 11:58:53 +00:00
parent 1550b2a356
commit 097a4183ed
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -185,6 +185,7 @@ public class CommandShellOutputFormatter implements OutputFormatter {
*/
public void printException(Exception e) {
out.println("ERROR: " + e);
e.printStackTrace(out);
}
/**