You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
moved auth from user package and added timezone to context values
This commit is contained in:
@ -83,6 +83,8 @@ func (err *Error) Error() string {
|
||||
func (er *Error) Response(ctx context.Context, htmlEntities bool) ErrorResponse {
|
||||
var r ErrorResponse
|
||||
|
||||
r.StatusCode = er.Status
|
||||
|
||||
if er.Message != "" {
|
||||
r.Error = er.Message
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user