@baris Thanks. It worked 🙂
Error message not rendering with filter:uploadImage hook. Instead getting: "ERROR Something went wrong while parsing server response"
667 last edited by 667
Tried tracking this down but I think it may be quicker to ask for some assistance on this one...
This is the error I get, however I'm passing the string
however as you can see from the next screenshot, I'm the error string "disabled account" is being passed to the callback...
I can't really find documentation on exactly what is expected from the callback function and trying to debug it hasn't been very helpful either. Hopefully someone can shed some light...
The goal is to have a customized error message returned to the user, instead of "Something went wrong while parsing...". It would be much more helpful to let the user know that the Cloudinary (in this instance) account was a disabled account.
667 last edited by
Wow! So turns out it was a silly error on my part. I had tried the Error object previously, but it was while looking at a different part of the code... I was actually looking/changing the 'imagekit' case in the code and being stumped as to why I was still seeing the behavior as I explained. Anyhow, it is working as it should when passing in an Error object. Thanks for the extra insight!