diff --git a/core/pkg/server/run.go b/core/pkg/server/run.go index f721e5dc0..f53e6cf54 100644 --- a/core/pkg/server/run.go +++ b/core/pkg/server/run.go @@ -40,7 +40,8 @@ func Run(m *NitricServer) { select { case serverErr := <-errChan: if serverErr != nil { - logger.Errorf("Nitric Server Error: %v, exiting\n", serverErr) + logger.Fatalf("Nitric Server Error: %v, exiting\n", serverErr) + os.Exit(1) } // Closed channel, server stopped logger.Debugf("Nitric Server Stopped\n")