lucky icon indicating copy to clipboard operation
lucky copied to clipboard

Error: undefined local variable or method 'params' for Errors::Show

Open jwoertink opened this issue 3 years ago • 0 comments

I'm actually shocked I haven't seen this before... Apparently you can't call params inside of an Error Action.... This data comes from context which is available inside of errors https://github.com/luckyframework/lucky/blob/e1a6adf8552676884e67528293d3142032387b4b/src/lucky/context_extensions.cr#L37

You may need this data for sending extra information to a bug reporting, or maybe for getting a current_user or something.

jwoertink avatar Jan 12 '22 19:01 jwoertink