Skip to content

Commit

Permalink
cmd: Clarify HYDRA_ADMIN_URL in missing endpoint message
Browse files Browse the repository at this point in the history
Closes #1016

Signed-off-by: arekkas <aeneas@ory.am>
  • Loading branch information
arekkas committed Aug 31, 2018
1 parent 6549f1e commit 1c2b46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Expand Up @@ -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
Expand Down

0 comments on commit 1c2b46c

Please sign in to comment.