Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
raymonstah committed Apr 2, 2024
1 parent d957161 commit 1da4d84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions/api/server/server-html.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,16 @@ func (s *ServerHTML) HandlerError(w http.ResponseWriter, r *http.Request, e Erro
s.logger.Error().Err(e.Err).Msg("handler internal error")
}
var errorParam struct {
Base
EnableAds bool
Error string
Status int
}
errorParam.EnableAds = !s.local
errorParam.EnableAnalytics = !s.local
errorParam.RollbarToken = s.rollbarToken
errorParam.Local = s.local

errorParam.Status = e.Status
errorParam.Error = e.Err.Error()

Expand Down

0 comments on commit 1da4d84

Please sign in to comment.