Return error code if server fails to start

This commit is contained in:
Pijus Kamandulis
2025-02-03 22:58:45 +02:00
parent da1566875b
commit 887d456ad4
4 changed files with 32 additions and 18 deletions

View File

@@ -19,7 +19,10 @@ func main() {
})
server := api.NewApiServer(repository, configuration)
server.Start()
err := server.Start()
if err != nil {
panic(err)
}
waitForExit(server, repository, configuration)
}