add innerstacktrace on request exception

This commit is contained in:
kaso17 2017-09-14 15:01:01 +02:00
parent 634a860f5c
commit 1d3ac34011
1 changed files with 2 additions and 0 deletions

View File

@ -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);