Commit 77831099 authored by Honfika's avatar Honfika

small cleanup

parent b162b9dd
...@@ -174,8 +174,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -174,8 +174,7 @@ namespace Titanium.Web.Proxy.EventArguments
} }
catch (Exception ex) catch (Exception ex)
{ {
var ex2 = new Exception("Exception thrown in user event", ex); exceptionFunc(new Exception("Exception thrown in user event", ex));
exceptionFunc(ex2);
} }
} }
...@@ -187,8 +186,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -187,8 +186,7 @@ namespace Titanium.Web.Proxy.EventArguments
} }
catch (Exception ex) catch (Exception ex)
{ {
var ex2 = new Exception("Exception thrown in user event", ex); exceptionFunc(new Exception("Exception thrown in user event", ex));
exceptionFunc(ex2);
} }
} }
...@@ -200,8 +198,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -200,8 +198,7 @@ namespace Titanium.Web.Proxy.EventArguments
} }
catch (Exception ex) catch (Exception ex)
{ {
var ex2 = new Exception("Exception thrown in user event", ex); exceptionFunc(new Exception("Exception thrown in user event", ex));
exceptionFunc(ex2);
} }
} }
......
...@@ -233,7 +233,7 @@ namespace Titanium.Web.Proxy.Network.Certificate ...@@ -233,7 +233,7 @@ namespace Titanium.Web.Proxy.Network.Certificate
} }
catch (Exception ex) catch (Exception ex)
{ {
exceptionFunc.Invoke(new Exception("Failed to create BC certificate", ex)); exceptionFunc(new Exception("Failed to create BC certificate", ex));
} }
if (!cancellationToken.IsCancellationRequested) if (!cancellationToken.IsCancellationRequested)
......
...@@ -271,7 +271,7 @@ namespace Titanium.Web.Proxy.Network.Certificate ...@@ -271,7 +271,7 @@ namespace Titanium.Web.Proxy.Network.Certificate
} }
catch (Exception ex) catch (Exception ex)
{ {
exceptionFunc.Invoke(new Exception("Failed to create Win certificate", ex)); exceptionFunc(new Exception("Failed to create Win certificate", ex));
} }
if (!cancellationToken.IsCancellationRequested) if (!cancellationToken.IsCancellationRequested)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment