elli-lib / elli

Simple, robust and performant Erlang web server
https://github.com/elli-lib/elli/blob/develop/doc/README.md
MIT License
314 stars 37 forks source link

Some unhandled paths in case expressions #118

Open CharlesOkwuagwu opened 7 months ago

CharlesOkwuagwu commented 7 months ago

I'm seeing these types of errors. I believe they can be trapped so it does not bring down the server.

WhatsApp Image 2023-11-21 at 11 01 34 AM

Looking at the source: https://github.com/elli-lib/elli/blob/3ec352293ef493c142767127f4113c85541c32cc/src/elli_http.erl#L238-L244

I suggest we add a catch-all for each of the case statements, this way we trap any unforeseen errors

Other Suggestions?