From 1c2b46ce0a9c137ebbf6d42957444d89b5784b9a Mon Sep 17 00:00:00 2001 From: arekkas Date: Fri, 31 Aug 2018 14:22:28 +0200 Subject: [PATCH] cmd: Clarify HYDRA_ADMIN_URL in missing endpoint message Closes #1016 Signed-off-by: arekkas --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 043fc4afb5..27b7f0a78e 100644 --- a/config/config.go +++ b/config/config.go @@ -119,7 +119,7 @@ func (c *Config) GetSubjectTypesSupported() []string { func (c *Config) GetClusterURLWithoutTailingSlashOrFail(cmd *cobra.Command) string { endpoint := c.GetClusterURLWithoutTailingSlash(cmd) if endpoint == "" { - fmt.Println("To execute this command, the endpoint URL must point to the URL where ORY Hydra is located. To set the endpoint URL, use flag --endpoint or environment variable HYDRA_URL.") + fmt.Println("To execute this command, the endpoint URL must point to the URL where ORY Hydra is located. To set the endpoint URL, use flag --endpoint or environment variable HYDRA_URL or HYDRA_ADMIN_URL if an administrative command was used.") os.Exit(1) } return endpoint