diff --git a/cmd/drone-server/drone.go b/cmd/drone-server/drone.go index 96169bd0..3fe21ecd 100644 --- a/cmd/drone-server/drone.go +++ b/cmd/drone-server/drone.go @@ -177,7 +177,11 @@ func main() { http.Handle("/static/", static()) http.Handle("/", r) - http.ListenAndServe(settings.Server.Addr, nil) + + err = http.ListenAndServe(settings.Server.Addr, nil) + if err != nil { + log.Error("Cannot start server: ", err) + } } // static is a helper function that will setup handlers