Cleaned up some warnings in the codebase.

This commit is contained in:
Joseph Milazzo 2020-12-13 16:26:31 -06:00
parent 5da41ea6f3
commit a920be092d
4 changed files with 1 additions and 14 deletions

View file

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