- 
  Notifications
 You must be signed in to change notification settings 
- Fork 19
feat: throw and catch error when calls to cloudinary upload fails #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ✅ Deploy Preview for netlify-plugin-cloudinary ready!
 To edit notification comments on pull requests, go to your Netlify site configuration. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasfha can you check on line 330 of this file where the srcset is updated, can you verify an example with srcset will throw and catch the errors appropriately?
i'm not sure if we have a test for this and additionally may need to add it to the example being tested, but there's no try/catch around it like the other instnace of getCloudinaryUrl
i created some conflicts in other work im doing, pushed a commit to fix the conflicts and catch up teh branch
bc912b9 to
 7b85b1e  
 Compare
 
 There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one thing im concerned about here is similar to a previous comment
if getCloudinaryUrl throws an error here - wouldn't it throw an error for the entire try/catch, thus preventing the plugin from continuing to upload other images in the array?
wouldn't it make more sense for the try to wrap the getCloudinaryUrl call alone?
19a68cb to
 7178494  
 Compare
 
 Updated
bda8ecc to
 656654a  
 Compare
 
 thanks @matiasfha
Uh oh!
There was an error while loading. Please reload this page.
Description
Catch errors when using cloudinary uploader. Throw in the lib catch during build and log them .
Issue Ticket Number
Fixed #58
CleanShot 2023年09月21日 at 11 40 00
Type of change
Checklist