diff options
Diffstat (limited to 'service/http/service.go')
-rw-r--r-- | service/http/service.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/service/http/service.go b/service/http/service.go index 25a10064..7a175dcb 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -118,7 +118,12 @@ func (s *Service) Serve() error { s.rr.Attach(s.controller) } - s.handler = &Handler{cfg: s.cfg, rr: s.rr} + s.handler = &Handler{ + cfg: s.cfg, + rr: s.rr, + internalErrorCode: s.cfg.InternalErrorCode, + appErrorCode: s.cfg.AppErrorCode, + } s.handler.Listen(s.throw) if s.cfg.EnableHTTP() { |