lhoogenraad / letterbookd

Letterboxd but in real life
0 stars 0 forks source link

Make cust error handler fmt.Sprinterr itself, Other misc improvements #35

Closed lhoogenraad closed 3 weeks ago

lhoogenraad commented 1 month ago

Currently the error handler middleware util on the server relies on service methods to use fmt.Sprintf(err) on the err value they pass back to format it to a string. It would be way easier to make the error handler util perform this Sprintf call itself.

Additionally, the custom error handler should also log the error message using the Logger util.