print login failure reason to output

This commit is contained in:
Brad Rydzewski 2021-08-02 21:28:37 -04:00 committed by surtur
parent 45b129fb55
commit 3951502166
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -152,7 +152,7 @@ func (p Plugin) Exec() error {
raw, err := cmd.CombinedOutput()
if err != nil {
out := string(raw)
out = strings.Replace(out, "WARNING! Using --password via the CLI is insecure. Use --password-stdin.", "", -1)
out = strings.ReplaceAll(out, "WARNING! Using --password via the CLI is insecure. Use --password-stdin.", "")
fmt.Println(out)
return fmt.Errorf("Error authenticating: exit status 1")
}