Skip to content

Commit 9d29159

Browse files
committed
change message of case validation and parse
1 parent bed269c commit 9d29159

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/http-exception-plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export const httpExceptionPlugin = () =>
3838

3939
case 'VALIDATION':
4040
case 'PARSE': {
41-
const { code: httpCode, statusCode, message } = JSON.parse(HttpError.BAD_REQUEST);
41+
const { code: httpCode, statusCode } = JSON.parse(HttpError.BAD_REQUEST);
42+
const message = 'Invalid request payload';
4243
set.status = parseInt(httpCode, 10);
4344
return { statusCode, message };
4445
}

0 commit comments

Comments
 (0)