Skip to content

Commit e58abe2

Browse files
authored
sentry - routes - channel - Page/limit too large is FailedValidation response
1 parent 4479d60 commit e58abe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/src/routes/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ pub async fn get_all_spender_limits<A: Adapter + 'static>(
272272
let skip = query
273273
.page
274274
.checked_mul(limit.into())
275-
.ok_or_else(|| ResponseError::BadRequest("Page and/or limit is too large".into()))?;
275+
.ok_or_else(|| ResponseError::FailedValidation("Page and/or limit is too large".into()))?;
276276

277277
let new_state = get_corresponding_new_state(&app.pool, &app.logger, &channel).await?;
278278

0 commit comments

Comments
 (0)