Skip to content

Commit

Permalink
fix: log fatal and exit 1 on non-nil error. (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm authored Nov 5, 2024
1 parent c6fcfa9 commit b68df4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/pkg/server/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b68df4e

Please sign in to comment.