Commit 77831099 authored by Honfika's avatar Honfika

small cleanup

parent b162b9dd
......@@ -174,8 +174,7 @@ namespace Titanium.Web.Proxy.EventArguments
}
catch (Exception ex)
{
var ex2 = new Exception("Exception thrown in user event", ex);
exceptionFunc(ex2);
exceptionFunc(new Exception("Exception thrown in user event", ex));
}
}
......@@ -187,8 +186,7 @@ namespace Titanium.Web.Proxy.EventArguments
}
catch (Exception ex)
{
var ex2 = new Exception("Exception thrown in user event", ex);
exceptionFunc(ex2);
exceptionFunc(new Exception("Exception thrown in user event", ex));
}
}
......@@ -200,8 +198,7 @@ namespace Titanium.Web.Proxy.EventArguments
}
catch (Exception ex)
{
var ex2 = new Exception("Exception thrown in user event", ex);
exceptionFunc(ex2);
exceptionFunc(new Exception("Exception thrown in user event", ex));
}
}
......
......@@ -233,7 +233,7 @@ namespace Titanium.Web.Proxy.Network.Certificate
}
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)
......
......@@ -271,7 +271,7 @@ namespace Titanium.Web.Proxy.Network.Certificate
}
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)
......
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