0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added missing context from ValidationError

refs #10922

This is necessary to keep existing functionality in v0.1
This commit is contained in:
Fabien O'Carroll 2019-08-01 14:44:37 +08:00
parent df99e724e3
commit cd45ab4f54

View file

@ -345,7 +345,8 @@ validate = function validate(value, key, validations, tableName) {
}
validationErrors.push(new common.errors.ValidationError({
message: translation
message: translation,
context: `${tableName}.${key}`
}));
}