Skip to content

Commit

Permalink
add payload.maxRecords to error message (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmxdiqbal authored Jan 17, 2025
1 parent d9b5f95 commit 7c9fa0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ export function registerRoutes(server: FastifyInstance<Server, IncomingMessage,
if (payload.maxRecords > config.maxRecordsPerRequest || payload.maxRecords <= 0) {
reply.send({
success: false,
error: `Invalid AccountBucket size. Must be greater than 0 and less than ${config.maxRecordsPerRequest}.`,
error: `Invalid AccountBucket size. Size was ${payload.maxRecords}. Must be greater than 0 and less than ${config.maxRecordsPerRequest}.`,
})
return
}
Expand Down

0 comments on commit 7c9fa0e

Please sign in to comment.