mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
parent
28986b3b77
commit
d299e8676f
@ -12,9 +12,8 @@ const validate = (schema, definitions, json) => {
|
|||||||
|
|
||||||
if (validation.errors) {
|
if (validation.errors) {
|
||||||
return Promise.reject(new common.errors.ValidationError({
|
return Promise.reject(new common.errors.ValidationError({
|
||||||
message: common.i18n.t('notices.data.validation.index.validationFailed', {
|
message: common.i18n.t('notices.data.validation.index.validationFailed'),
|
||||||
errorDetails: validation.errors
|
errorDetails: validation.errors
|
||||||
})
|
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user