mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(dir): 🐛 resolve CS8602 warnings
This commit is contained in:
parent
75327b7804
commit
2a8fcde98c
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ public IActionResult ErrorLocalDevelopment([FromServices] IWebHostEnvironment we
|
|||
}
|
||||
|
||||
var context = HttpContext.Features.Get<IExceptionHandlerFeature>();
|
||||
return Problem(context.Error.StackTrace, title: context.Error.Message);
|
||||
return Problem(context?.Error.StackTrace, title: context?.Error.Message);
|
||||
}
|
||||
|
||||
[Route("/error")]
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public IActionResult ErrorLocalDevelopment([FromServices] IWebHostEnvironment we
|
|||
}
|
||||
|
||||
var context = HttpContext.Features.Get<IExceptionHandlerFeature>();
|
||||
return Problem(context.Error.StackTrace, title: context.Error.Message);
|
||||
return Problem(context?.Error.StackTrace, title: context?.Error.Message);
|
||||
}
|
||||
|
||||
[Route("/error")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue