mirror of
https://github.com/pikami/cosmium.git
synced 2026-11-04 23:45:50 +00:00
Return error code if server fails to start
This commit is contained in:
1 parent
da1566875b
commit
887d456ad4
4 files changed
+32
-18
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user