providers/aws: fix error on bad session

This commit is contained in:
Mitchell Hashimoto 2016-08-18 22:35:30 -04:00
parent 460aa76e00
commit 13cf04b2b7
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ func (c *Config) Client() (interface{}, error) {
// Set up base session // Set up base session
sess, err := session.NewSession(awsConfig) sess, err := session.NewSession(awsConfig)
if err != nil { if err != nil {
return nil, errwrap.Wrapf("Error creating AWS session: %s", err) return nil, errwrap.Wrapf("Error creating AWS session: {{err}}", err)
} }
sess.Handlers.Build.PushFrontNamed(addTerraformVersionToUserAgent) sess.Handlers.Build.PushFrontNamed(addTerraformVersionToUserAgent)