diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/server/mux.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/server/mux.go b/internal/server/mux.go index c5ba97a..c2469ad 100644 --- a/internal/server/mux.go +++ b/internal/server/mux.go @@ -83,6 +83,12 @@ func NewMux( liveReload bool, ) (*http.ServeMux, error) { var err error + if cfg == nil { + return nil, errors.New("cfg is nil") + } + if index == nil { + return nil, errors.New("index is nil") + } sentryHandler := sentryhttp.New(sentryhttp.Options{ Repanic: true, }) |