From 2796f839500fe1bdceedeede90c8eed0d46dc162 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 25 Mar 2015 15:23:04 -0700 Subject: [PATCH] command/remote-config: make the error message nicer for remote init /cc @sethvargo - based on UX issues you ran into yesterday --- command/remote_config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command/remote_config.go b/command/remote_config.go index cb95c4b949..2f106f909d 100644 --- a/command/remote_config.go +++ b/command/remote_config.go @@ -177,7 +177,12 @@ func (c *RemoteConfigCommand) validateRemoteConfig() error { conf := c.remoteConf _, err := remote.NewClient(conf.Type, conf.Config) if err != nil { - c.Ui.Error(fmt.Sprintf("%s", err)) + c.Ui.Error(fmt.Sprintf( + "%s\n\n"+ + "If the error message above mentions requiring or modifying configuration\n" + + "options, these are set using the `-backend-config` flag. Example:\n" + + '-backend-config="name=foo" to set the `name` configuration', + err)) } return err }