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.
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.