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

Fixed wrong i18n key

refs #9519

- `errors.models.posts.postNotFound` -> wrong
- `errors.models.post.postNotFound`  -> correct
- the i18n lib just logs the error and falls back to a valid error key
- wrong i18n keys will never break Ghost
This commit is contained in:
kirrg001 2018-03-21 08:41:05 +01:00
parent 1d65581f93
commit f0c8e3c95a

View file

@ -687,7 +687,7 @@ Post = ghostBookshelf.Model.extend({
.then(function then(foundPostModel) {
if (!foundPostModel) {
throw new common.errors.NotFoundError({
message: common.i18n.t('errors.models.posts.postNotFound')
message: common.i18n.t('errors.models.post.postNotFound')
});
}