From b27d525bdec29d9a7b9373b50ebe5a148a57e684 Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Wed, 8 Apr 2026 20:13:38 +0200 Subject: [PATCH] Don't log expected exceptions Some tests deliberately throw an exception. These exceptions are expected and should not show up in the build log. Logging can already be disabled by calling `setDisplayExceptionOnConsole(...)`. If disabled, this flag will now prevent any propagation to the console. --- .../src/org/eclipse/wb/internal/core/DesignerPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/DesignerPlugin.java b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/DesignerPlugin.java index e6675b620..d4411e163 100644 --- a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/DesignerPlugin.java +++ b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/DesignerPlugin.java @@ -291,8 +291,8 @@ public static void log(String message) { */ public static void log(Throwable e) { // print on console for easy debugging - if (m_displayExceptionOnConsole) { - e.printStackTrace(); + if (!m_displayExceptionOnConsole) { + return; } // log into Eclipse .log {