Compare commits

...

2 commits

Author SHA1 Message Date
8042202628 Merge remote-tracking branch 'upstream/master' 2021-10-09 17:34:58 -03:00
Henrik Christensen
97733e57c8
added section about Kemal.config.always_rescue (#22) 2021-10-04 09:28:13 +03:00

View file

@ -62,6 +62,13 @@ describe "Your::Kemal::App" do
end
```
#### Rescue errors
Errors gets rescued by default which results in the Kemal's exception page is rendered.
This may not always be the desired behaviour, e.g. when a JSON parsing error occurs one might expect `"[]"`
and not Kemal's exception page.
Set `Kemal.config.always_rescue = false` to prevent this behaviour and raise errors instead.
## Contributing
1. Fork it ( https://github.com/kemalcr/spec-kemal/fork )