Cleaned up some warnings in the codebase.
This commit is contained in:
parent
5da41ea6f3
commit
a920be092d
4 changed files with 1 additions and 14 deletions
|
@ -36,7 +36,7 @@ namespace API.Middleware
|
|||
context.Response.StatusCode = (int) HttpStatusCode.InternalServerError;
|
||||
|
||||
var response = _env.IsDevelopment()
|
||||
? new ApiException(context.Response.StatusCode, ex.Message, ex.StackTrace?.ToString())
|
||||
? new ApiException(context.Response.StatusCode, ex.Message, ex.StackTrace)
|
||||
: new ApiException(context.Response.StatusCode, "Internal Server Error");
|
||||
|
||||
var options = new JsonSerializerOptions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue