Throwing and catching errors in CF workers
I have an server endpoint in which I throw an error:
Now I catch this error in my page with the below code. It works perfectly fine during development. But in production (cloudflare workers),
error.statusMessage
is undefined
. Do you have an idea why ?
1 Reply
error.data.statusMessage
works also in prod so I'll use that.