Skip to content

Commit 48be417

Browse files
committed
[Win32] Add OS result to failing Edge initialization after retries
The Edge implementation contains retry functionality according to the ICoreWebView2Environment documentation. After five retries, the initialization is aborted with an error. In order to ease debugging of potential causes, this change adds the OS result of the last retry attempt to the error logged by the initialization abortion.
1 parent 9eb78b3 commit 48be417

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ private IUnknown createControllerInitializationCallback(int previousAttempts) {
627627
createInstance(previousAttempts + 1);
628628
} else {
629629
SWT.error(SWT.ERROR_UNSPECIFIED, null,
630-
String.format(" Aborting Edge initialiation after %d retries", MAXIMUM_CREATION_RETRIES));
630+
String.format(" Aborting Edge initialiation after %d retries with result %d", MAXIMUM_CREATION_RETRIES, result));
631631
}
632632
break;
633633
}

0 commit comments

Comments
 (0)