added more info

This commit is contained in:
Miodec 2022-02-03 22:21:32 +01:00
parent 25b914fb22
commit 1aab7ab39f

View file

@ -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]}`
);
}
});