From 9fe04de5884d1e9b08a26be31b0507d9de1b6d30 Mon Sep 17 00:00:00 2001 From: Mark Rogers Date: Fri, 19 Mar 2010 15:02:42 +0000 Subject: [PATCH] Cosmetic tidy up for last check in. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/tools/Tool.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/source/java/org/alfresco/tools/Tool.java b/source/java/org/alfresco/tools/Tool.java index a79504234a..ff2199e964 100644 --- a/source/java/org/alfresco/tools/Tool.java +++ b/source/java/org/alfresco/tools/Tool.java @@ -117,12 +117,7 @@ public abstract class Tool /** * Handle Error Message * - * @param e exception - */ - /** - * Handle Error Message - * - * @param e exception + * @param e exception */ protected int handleError(Throwable e) { @@ -135,14 +130,14 @@ public abstract class Tool else if (e instanceof ToolException) { if (e.getCause() != null) - { + { logError(e.getMessage() + " caused by: " + e.getCause().getMessage()); } else { logError(e.getMessage()); } - + // If we are being verbose then show the stack trace as well. if (toolContext != null && toolContext.isVerbose()) { @@ -155,7 +150,7 @@ public abstract class Tool else { logError("The following error has occurred:" + e.getMessage()); - + if (toolContext != null && toolContext.isVerbose()) { StringWriter stringWriter = new StringWriter(); @@ -164,7 +159,7 @@ public abstract class Tool logError(stringWriter.toString()); } } - + // return generic error code return -1; }