mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
9dd7aff9c6
commit
76c6f96aed
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module.exports = function upload(options) {
|
|||
|
||||
// Check if a file was provided
|
||||
if (!localUtils.checkFileExists(req.file)) {
|
||||
return next(new common.errors.NoPermissionError({
|
||||
return next(new common.errors.ValidationError({
|
||||
message: common.i18n.t(`errors.api.${type}.missingFile`)
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue