mirror of https://github.com/Jackett/Jackett
add innerstacktrace on request exception
This commit is contained in:
parent
634a860f5c
commit
1d3ac34011
|
@ -44,6 +44,8 @@ namespace Jackett
|
|||
json["result"] = "error";
|
||||
json["error"] = msg;
|
||||
json["stacktrace"] = exception.StackTrace;
|
||||
if (exception.InnerException != null)
|
||||
json["innerstacktrace"] = exception.InnerException.StackTrace;
|
||||
|
||||
var response = actionExecutedContext.Request.CreateResponse();
|
||||
response.Content = new JsonContent(json);
|
||||
|
|
Loading…
Reference in New Issue