From aaf80259d35035616ab3d36380bdc95421e8cee8 Mon Sep 17 00:00:00 2001 From: Jens Heinrich <59469646+JensHeinrich@users.noreply.github.com> Date: Tue, 4 Aug 2020 18:03:15 +0200 Subject: [PATCH] Update server.go Reference both possible values to make debugging easier --- cmd/drone-server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/drone-server/server.go b/cmd/drone-server/server.go index e4c3e9de1..c2d1cd2c2 100644 --- a/cmd/drone-server/server.go +++ b/cmd/drone-server/server.go @@ -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 :// format", + "DRONE_HOST/DRONE_SERVER_HOST must be :// 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", ) }