Skip to content

Commit

Permalink
Display: improve ERROR_THREAD_INVALID_ACCESS message
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T committed Oct 9, 2024
1 parent bb0f8dd commit da5445c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,9 @@ static void checkDisplay (Thread thread, boolean multiple) {
for (Display display : Displays) {
if (display != null) {
if (!multiple) SWT.error (SWT.ERROR_NOT_IMPLEMENTED, null, " [multiple displays]"); //$NON-NLS-1$
if (display.thread == thread) SWT.error (SWT.ERROR_THREAD_INVALID_ACCESS);
if (display.thread == thread)
SWT.error(SWT.ERROR_THREAD_INVALID_ACCESS, null,
" Another Display is already associated by this thread: " + thread);
}
}
}
Expand Down

0 comments on commit da5445c

Please sign in to comment.