mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Handled missing resource path for resized images
no issue -
This commit is contained in:
parent
f38d490886
commit
76f9fc50f6
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class LocalFileStore extends StorageBase {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
fs.readFile(targetPath, (err, bytes) => {
|
fs.readFile(targetPath, (err, bytes) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (err.code === 'ENOENT') {
|
if (err.code === 'ENOENT' || err.code === 'ENOTDIR') {
|
||||||
return reject(new common.errors.NotFoundError({
|
return reject(new common.errors.NotFoundError({
|
||||||
err: err,
|
err: err,
|
||||||
message: common.i18n.t('errors.errors.imageNotFoundWithRef', {img: options.path})
|
message: common.i18n.t('errors.errors.imageNotFoundWithRef', {img: options.path})
|
||||||
|
|
Loading…
Add table
Reference in a new issue