Cleanup deploy error message (#88)

This removes a double print of the API response error message.
This commit is contained in:
Gabe Jackson 2020-03-13 12:10:53 -04:00 committed by GitHub
parent 8fb70ec7f3
commit 6eea8c4577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ func deploy() error {
log.Printf("Authenticating as %s against %s.", adminUsername, siteURL) log.Printf("Authenticating as %s against %s.", adminUsername, siteURL)
_, resp := client.Login(adminUsername, adminPassword) _, resp := client.Login(adminUsername, adminPassword)
if resp.Error != nil { if resp.Error != nil {
return errors.Wrapf(resp.Error, "failed to login as %s: %s", adminUsername, resp.Error.Error()) return errors.Wrapf(resp.Error, "failed to login as %s", adminUsername)
} }
return uploadPlugin(client, pluginID, bundlePath) return uploadPlugin(client, pluginID, bundlePath)