Return 403 instead of the view if we can’t get a response out of netbox
This commit is contained in:
@@ -34,7 +34,7 @@ namespace AS1024.CommunityDocumentationPage.Controllers
|
|||||||
_logger.LogError($"Failed to obtain data\n{ex}");
|
_logger.LogError($"Failed to obtain data\n{ex}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return View();
|
return Forbid();
|
||||||
}
|
}
|
||||||
|
|
||||||
public IActionResult Privacy()
|
public IActionResult Privacy()
|
||||||
|
|||||||
Reference in New Issue
Block a user