mirror of https://github.com/Jackett/Jackett
ResultsController: fix request exception handling
This commit is contained in:
parent
e309d96c51
commit
ae6d5ccfc6
|
@ -125,6 +125,9 @@ namespace Jackett.Controllers.V20
|
|||
{
|
||||
base.OnActionExecuted(actionExecutedContext);
|
||||
|
||||
if (actionExecutedContext.Exception != null)
|
||||
throw new Exception("Error while executing request", actionExecutedContext.Exception);
|
||||
|
||||
var content = actionExecutedContext.Response.Content as ObjectContent;
|
||||
actionExecutedContext.Response.Content = new JsonContent(content.Value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue