mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 17:04:13 +00:00
Fix cloudinary upload error message (#6525)
Signed-off-by: Sudhir Shrestha <sudhirshrestha@live.com>
This commit is contained in:
parent
b2aa657964
commit
0a38ec7bf0
@ -19,7 +19,8 @@ module.exports = {
|
|||||||
{ resource_type: 'auto', public_id: file.hash, ...customConfig },
|
{ resource_type: 'auto', public_id: file.hash, ...customConfig },
|
||||||
(err, image) => {
|
(err, image) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return reject(err);
|
strapi.log.error(`Error uploading to cloudinary: ${err.message}`);
|
||||||
|
return reject(new Error('Upload to cloudinary failed'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image.resource_type === 'video') {
|
if (image.resource_type === 'video') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user