Hi everyone, since 2019.2 I noticed that my custom...
# suitescript
b
Hi everyone, since 2019.2 I noticed that my custom Error Suitelet form does not work anymore. I receive the following error when an error was catched.
"createError(N/error)"],"cause":{"name":"WRONG_PARAMETER_TYPE","message":"Wrong parameter type: parameters.errorcontent is expected as string or number or boolean or null. "},"id":"","notifyOff":false,"userFacing":true}
Does anyone know what’s wrong?
Thanks for guiding me in the right direction @Lea CC! Cause: the type of e was an object and therefore the error occured. Just to be safe I’ll do a typeof check first and stringify e when it’s an object otherwise I just supply e.
👍 1
l
anytime Budy!
😎 1
n
you might want to use e.message, worth having a look at what the object looks like 😉
👍 1