mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
Show all env var names in log messages (#208)
This commit is contained in:
parent
9bf8e05fd0
commit
8f76192b77
@ -532,18 +532,18 @@ func server(c *cli.Context) error {
|
||||
|
||||
// must configure the drone_host variable
|
||||
if c.String("server-host") == "" {
|
||||
logrus.Fatalln("DRONE_HOST/DRONE_SERVER_HOST is not properly configured")
|
||||
logrus.Fatalln("DRONE_HOST/DRONE_SERVER_HOST/WOODPECKER_HOST/WOODPECKER_SERVER_HOST is not properly configured")
|
||||
}
|
||||
|
||||
if !strings.Contains(c.String("server-host"), "://") {
|
||||
logrus.Fatalln(
|
||||
"DRONE_HOST/DRONE_SERVER_HOST must be <scheme>://<hostname> format",
|
||||
"DRONE_HOST/DRONE_SERVER_HOST/WOODPECKER_HOST/WOODPECKER_SERVER_HOST must be <scheme>://<hostname> format",
|
||||
)
|
||||
}
|
||||
|
||||
if strings.HasSuffix(c.String("server-host"), "/") {
|
||||
logrus.Fatalln(
|
||||
"DRONE_HOST/DRONE_SERVER_HOST must not have trailing slash",
|
||||
"DRONE_HOST/DRONE_SERVER_HOST/WOODPECKER_HOST/WOODPECKER_SERVER_HOST must not have trailing slash",
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user