Skip to content

Commit cda6ce7

Browse files
committed
WinForms Example - Update error handling
- Ignore aborted
1 parent fcc68c3 commit cda6ce7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CefSharp.OutOfProcess.WinForms.Example/BrowserTabUserControl.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ private async void OnBrowserNetworkRequestFailed(object sender, Dom.RequestEvent
4343
{
4444
var request = args.Request;
4545

46+
// Generally safe to ignore showing user aborted errors
47+
if(request.Failure == "net::ERR_ABORTED")
48+
{
49+
return;
50+
}
51+
4652
var errorHtml = string.Format("<html><body><h2>Failed to load URL {0} with error {1}.</h2></body></html>",
4753
request.Url, request.Failure);
4854

0 commit comments

Comments
 (0)