sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.19k stars 149 forks source link

ION local error return can brake step functions error handling/catch handling #269

Open kujtimiihoxha opened 3 months ago

kujtimiihoxha commented 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.

Screenshot 2024-04-18 at 14 25 49

thdxr commented 3 months ago

what do you think this should be? should it be ex.name ?

kujtimiihoxha commented 3 months ago

Yeah that is what I did in my local env.. maybe something like ex.name || 'Error'