mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Push through exception insetad of just string.
This commit is contained in:
@@ -25,8 +25,8 @@ namespace CefSharp
|
||||
// in order to report a .net exception from a CEF thread.
|
||||
static void ReportUnhanledException(Object ^state)
|
||||
{
|
||||
String ^msg = dynamic_cast<String^>(state);
|
||||
throw gcnew InvalidOperationException(msg);
|
||||
Exception ^e = dynamic_cast<Exception^>(state);
|
||||
throw gcnew InvalidOperationException(gcnew String(L"CefTaskWrapper caught an unexpected exception. This should never happen, please contact CefSharp for assistance."), e);
|
||||
}
|
||||
|
||||
public:
|
||||
@@ -63,7 +63,7 @@ namespace CefSharp
|
||||
// with the exception.
|
||||
ThreadPool::UnsafeQueueUserWorkItem(
|
||||
gcnew WaitCallback(&CefTaskWrapper::ReportUnhanledException),
|
||||
static_cast<Object^>(msg));
|
||||
static_cast<Object^>(e));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user