This commit is contained in:
Artemy
2025-07-21 17:20:35 +07:00
parent 93004a26b3
commit 10b4e5207f
2 changed files with 8 additions and 3 deletions
@@ -43,6 +43,11 @@ public class OnlinePingingController : Controller
_logger.LogError(e, e.Message);
return BadRequest("User can't be found in our database.");
}
catch (UnauthorizedAccessException e)
{
_logger.LogError(e, e.Message);
return Forbid(e.Message);
}
catch (Exception e)
{
_logger.LogError(e, e.Message);