builder/scaleway: report to ui scw api startup error

This commit is contained in:
Loïc Carr 2018-01-05 10:07:03 +01:00 committed by Matthew Hooker
parent 7f8ed28bc6
commit 1f7c32db98
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
client, err := api.NewScalewayAPI(b.config.Organization, b.config.Token, b.config.UserAgent, b.config.Region) client, err := api.NewScalewayAPI(b.config.Organization, b.config.Token, b.config.UserAgent, b.config.Region)
if err != nil { if err != nil {
ui.Error(err.Error())
return nil, err return nil, err
} }