Skip to content

Commit

Permalink
Merge pull request #2237 from headlamp-k8s/print-server-error
Browse files Browse the repository at this point in the history
backend: Print error if server fails to start
  • Loading branch information
joaquimrocha authored Aug 9, 2024
2 parents 57cb5c8 + 68026d5 commit 9470913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/cmd/headlamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ func StartHeadlampServer(config *HeadlampConfig) {
// Start server
err := http.ListenAndServe(fmt.Sprintf(":%d", config.port), handler) //nolint:gosec
if err != nil {
logger.Log(logger.LevelError, nil, nil, "Failed to start server")
logger.Log(logger.LevelError, nil, err, "Failed to start server")
os.Exit(1)
}
}
Expand Down

0 comments on commit 9470913

Please sign in to comment.