mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-29 18:04:15 +02:00
Update server.go
Reference both possible values to make debugging easier
This commit is contained in:
parent
c8d899f40d
commit
aaf80259d3
@ -526,18 +526,18 @@ func server(c *cli.Context) error {
|
||||
|
||||
// must configure the drone_host variable
|
||||
if c.String("server-host") == "" {
|
||||
logrus.Fatalln("DRONE_HOST is not properly configured")
|
||||
logrus.Fatalln("DRONE_HOST/DRONE_SERVER_HOST is not properly configured")
|
||||
}
|
||||
|
||||
if !strings.Contains(c.String("server-host"), "://") {
|
||||
logrus.Fatalln(
|
||||
"DRONE_HOST must be <scheme>://<hostname> format",
|
||||
"DRONE_HOST/DRONE_SERVER_HOST must be <scheme>://<hostname> format",
|
||||
)
|
||||
}
|
||||
|
||||
if strings.HasSuffix(c.String("server-host"), "/") {
|
||||
logrus.Fatalln(
|
||||
"DRONE_HOST must not have trailing slash",
|
||||
"DRONE_HOST/DRONE_SERVER_HOST must not have trailing slash",
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user