Skip to content

Commit

Permalink
check if rest server is closed successfully. (colibri-project-io#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanjoms authored Oct 30, 2023
1 parent e2a5233 commit b63f573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/web/restserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@ func ListenAndServe() {

observer.Attach(restObserver{})
logging.Info("Service '%s' running in %d port", "WEB-REST", config.PORT)
log.Fatal(srv.listenAndServe())
if err := srv.listenAndServe(); err != nil {
log.Fatalf("Error rest server: %v", err)
}
}

0 comments on commit b63f573

Please sign in to comment.