mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
added more info
This commit is contained in:
parent
25b914fb22
commit
1aab7ab39f
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ function requestValidation(validationSchema) {
|
|||
const errorMessage = error.details[0].message;
|
||||
throw new MonkeyError(
|
||||
500,
|
||||
validationErrorMessage ?? `Invalid request: ${errorMessage}`
|
||||
validationErrorMessage ?? `Invalid request: ${errorMessage}`,
|
||||
`${key}: ${req[key]}`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue