You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For future me: we should solve this in a better way upstream in the toJSON (and related) calls to show error information?
Things to think about:
toJSON returns an array at the top level. I wish it used { results: [] } instead which would allow for { error: {} }—we may need a better way around this.
We may need to be careful about being too open about error messaging in serverless mode, which may have implications if we console.log the full error stack to the end user.
Hi, is there any workaround to send custom errors from rendering to final user ?
Currently, I raise an error from some filters/globals with custom message and statusCode field, but it is caught and replaced by "Having trouble rendering njk template ..." before reaching the .catch which follows elev.getOutput() and thus my users ever see a 500 without details.
Not quite good enough, here!
https://contrast-11ties.netlify.app/contrast/?foreground=%23ffffff&background=NOVALUE
via https://twitter.com/m_andrasch/status/1459074004707426308
The text was updated successfully, but these errors were encountered: