mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
28986b3b77
commit
d299e8676f
1 changed files with 2 additions and 3 deletions
|
@ -12,9 +12,8 @@ const validate = (schema, definitions, json) => {
|
|||
|
||||
if (validation.errors) {
|
||||
return Promise.reject(new common.errors.ValidationError({
|
||||
message: common.i18n.t('notices.data.validation.index.validationFailed', {
|
||||
errorDetails: validation.errors
|
||||
})
|
||||
message: common.i18n.t('notices.data.validation.index.validationFailed'),
|
||||
errorDetails: validation.errors
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue