mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
return statement after reject
This commit is contained in:
parent
3175e47cdf
commit
286f9b2e23
@ -30,8 +30,10 @@ module.exports = {
|
||||
if (err) {
|
||||
if (err.message.includes('File size too large')) {
|
||||
reject(new PayloadTooLargeError());
|
||||
} else {
|
||||
reject(new Error(`Error uploading to cloudinary: ${err.message}`));
|
||||
}
|
||||
reject(new Error(`Error uploading to cloudinary: ${err.message}`));
|
||||
return;
|
||||
}
|
||||
|
||||
if (image.resource_type === 'video') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user