mirror of
https://github.com/Jackett/Jackett
synced 2025-01-20 06:29:33 +00:00
add innerstacktrace on request exception
This commit is contained in:
parent
634a860f5c
commit
1d3ac34011
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue