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

Changed error type for missing file in /uploads

refs #10438
This commit is contained in:
Nazar Gargol 2019-02-14 20:52:51 +00:00
parent 9dd7aff9c6
commit 76c6f96aed

View file

@ -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`)
}));
}