diff --git a/CefSharp.Core/Internals/CefSharpApp.h b/CefSharp.Core/Internals/CefSharpApp.h index da96dc2b06..a3dfe1f83f 100644 --- a/CefSharp.Core/Internals/CefSharpApp.h +++ b/CefSharp.Core/Internals/CefSharpApp.h @@ -117,8 +117,13 @@ namespace CefSharp { for each (CefCustomScheme^ scheme in _cefSettings->CefCustomSchemes) { - // TOOD: Consider adding error handling here. But where do we report any errors that may have occurred? - registrar->AddCustomScheme(StringUtils::ToNative(scheme->SchemeName), scheme->IsStandard, scheme->IsLocal, scheme->IsDisplayIsolated, scheme->IsSecure, scheme->IsCorsEnabled, false); + auto success = registrar->AddCustomScheme(StringUtils::ToNative(scheme->SchemeName), scheme->IsStandard, scheme->IsLocal, scheme->IsDisplayIsolated, scheme->IsSecure, scheme->IsCorsEnabled, false); + + if (!success) + { + String^ msg = "CefSchemeRegistrar::AddCustomScheme failed for schemeName:" + scheme->SchemeName; + LOG(ERROR) << StringUtils::ToNative(msg).ToString(); + } } };