diff options
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java')
-rw-r--r-- | bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java index d2e177404..8c956d1a9 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/ExceptionCollector.java @@ -94,19 +94,19 @@ public class ExceptionCollector { * @param exception the exception to collect */ public void handleException(CoreException exception) { - // log the exception if we have a log - if(log != null) { - log.log(new Status(severity, pluginId, 0, message, exception)); - } - // Record each status individually to flatten the resulting multi-status - IStatus exceptionStatus = exception.getStatus(); - // Wrap the exception so the stack trace is not lost. - IStatus status = new Status(exceptionStatus.getSeverity(), exceptionStatus.getPlugin(), exceptionStatus.getCode(), exceptionStatus.getMessage(), exception); - recordStatus(status); + // log the exception if we have a log + if(log != null) { + log.log(new Status(severity, pluginId, 0, message, exception)); + } + // Record each status individually to flatten the resulting multi-status + IStatus exceptionStatus = exception.getStatus(); + // Wrap the exception so the stack trace is not lost. + IStatus status = new Status(exceptionStatus.getSeverity(), exceptionStatus.getPlugin(), exceptionStatus.getCode(), exceptionStatus.getMessage(), exception); + recordStatus(status); IStatus[] children = status.getChildren(); for (int i = 0; i < children.length; i++) { IStatus status2 = children[i]; - recordStatus(status2); + recordStatus(status2); } } |