Skip to content

Commit 8a5464c

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 f7f03b1 commit 8a5464c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)