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:
parent
1d65581f93
commit
f0c8e3c95a
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue