mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-01 07:10:36 +00:00
Merge pull request #1024 from CiscoCloud/0.4.0
Log error when ListenAndServe fails
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user