Tell sentry to ignore some noisy messages, add a bounds check on an API, and tweak some ERRORs to be WARNINGs to better reflect their severity. (#216)
This commit is contained in:
parent
beca4a4de5
commit
98e8b7297b
5 changed files with 35 additions and 15 deletions
|
@ -32,6 +32,7 @@ namespace API.Controllers
|
|||
[HttpGet("image")]
|
||||
public async Task<ActionResult> GetImage(int chapterId, int page)
|
||||
{
|
||||
if (page < 0) return BadRequest("Page cannot be less than 0");
|
||||
var chapter = await _cacheService.Ensure(chapterId);
|
||||
if (chapter == null) return BadRequest("There was an issue finding image file for reading");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue