Skip to content

Commit

Permalink
fix ErrorDialog AUTOMATED_MODE logging
Browse files Browse the repository at this point in the history
tests should not log IllegalStateException when opening ErrorDialog is
expected.

eclipse-jdt/eclipse.jdt.debug#395
  • Loading branch information
EcljpseB0T committed Feb 19, 2024
1 parent 41d170e commit ab91e60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ public void widgetDefaultSelected(SelectionEvent e) {
@Override
public int open() {
if (AUTOMATED_MODE) {
IllegalStateException e = new IllegalStateException("Error dialog is supposed to be shown now"); //$NON-NLS-1$
MultiStatus ms = new MultiStatus("org.eclipse.jface", IStatus.ERROR, title + " : " + message, e); //$NON-NLS-1$ //$NON-NLS-2$
MultiStatus ms = new MultiStatus("org.eclipse.jface", IStatus.INFO, //$NON-NLS-1$
"Logging instead of opening ErorDialog for: " + title + " : " + message); //$NON-NLS-1$ //$NON-NLS-2$
if (status != null) {
ms.add(status);
}
Expand Down

0 comments on commit ab91e60

Please sign in to comment.