Skip to content

Commit 09d1c2e

Browse files
committed
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.
1 parent cb726d9 commit 09d1c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.wb.core/src/org/eclipse/wb/internal/core/DesignerPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ public static void log(String message) {
291291
*/
292292
public static void log(Throwable e) {
293293
// print on console for easy debugging
294-
if (m_displayExceptionOnConsole) {
295-
e.printStackTrace();
294+
if (!m_displayExceptionOnConsole) {
295+
return;
296296
}
297297
// log into Eclipse .log
298298
{

0 commit comments

Comments
 (0)