diff options
author | Alan Pearce | 2024-11-28 15:12:00 +0100 |
---|---|---|
committer | Alan Pearce | 2024-11-28 15:12:00 +0100 |
commit | b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa (patch) | |
tree | eb6f951b3a0959c6ace7be6f111124791e90c54d /internal/server/server.go | |
parent | 183b0c8b5edbcf4224d4dd3905ca483204522656 (diff) | |
download | website-b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa.tar.lz website-b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa.tar.zst website-b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa.zip |
Diffstat (limited to 'internal/server/server.go')
-rw-r--r-- | internal/server/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 5c92139..b327f3d 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -180,7 +180,7 @@ func New(runtimeConfig *Config, log *log.Logger) (*Server, error) { loggingMux := http.NewServeMux() mux, err := website.NewMux(config, runtimeConfig.Root, log.Named("website")) if err != nil { - return nil, errors.Wrap(err, "could not create website mux") + return nil, errors.WithMessage(err, "could not create website mux") } if runtimeConfig.Redirect { @@ -238,7 +238,7 @@ func (s *Server) serve(tls bool) error { func (s *Server) Start() error { if err := s.serve(s.runtimeConfig.TLS); err != http.ErrServerClosed { - return errors.Wrap(err, "error creating/closing server") + return errors.WithMessage(err, "error creating/closing server") } return nil |