Skip to content

Commit 478a69f

Browse files
committed
Display: improve ERROR_THREAD_INVALID_ACCESS message
1 parent bb0f8dd commit 478a69f

File tree

1 file changed

+3
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets

1 file changed

+3
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,9 @@ static void checkDisplay (Thread thread, boolean multiple) {
873873
for (Display display : Displays) {
874874
if (display != null) {
875875
if (!multiple) SWT.error (SWT.ERROR_NOT_IMPLEMENTED, null, " [multiple displays]"); //$NON-NLS-1$
876-
if (display.thread == thread) SWT.error (SWT.ERROR_THREAD_INVALID_ACCESS);
876+
if (display.thread == thread)
877+
SWT.error(SWT.ERROR_THREAD_INVALID_ACCESS, null,
878+
" Another Display is already associated by this thread: " + thread);
877879
}
878880
}
879881
}

0 commit comments

Comments
 (0)