Open kujtimiihoxha opened 3 months ago
I was trying to use ION with step functions and handle custom errors (docs) but the local environment is not returning the correct errors.
Basically the issue is the hard coded errorType instead of hard coding it to Error it should come from the ex error.
errorType
Error
ex
what do you think this should be? should it be ex.name ?
ex.name
Yeah that is what I did in my local env.. maybe something like ex.name || 'Error'
ex.name || 'Error'
I was trying to use ION with step functions and handle custom errors (docs) but the local environment is not returning the correct errors.
Basically the issue is the hard coded
errorType
instead of hard coding it toError
it should come from theex
error.