From 7ad06a328cfd68ac88b37e95906186118e75ca63 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 27 Mar 2008 20:22:24 -0400 Subject: [PATCH] Don't print a stack trace if Eclipse will log the error for us When we crash here by throwing a RuntimeException Eclipse will log in the workbench error log that our decorator is broken, and then will disable us. We don't also need to print the stack trace to the console. Signed-off-by: Shawn O. Pearce --- .../org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java index 87570716..54896852 100644 --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java @@ -339,8 +339,6 @@ public class GitResourceDecorator extends LabelProvider implements // throw new RuntimeException(UIText.Decorator_failedLazyLoading, e); } catch (CoreException e) { - // TODO Auto-generated catch block - e.printStackTrace(); throw new RuntimeException(UIText.Decorator_failedLazyLoading, e); } } -- 2.11.4.GIT