Skip to content

Commit

Permalink
Log response after failure in encrypting password (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Mar 16, 2022
1 parent d8c433d commit 69a0ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artifactory/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"path/filepath"

"github.com/jfrog/build-info-go/build"
clientutils "github.com/jfrog/jfrog-client-go/utils"
"github.com/jfrog/jfrog-client-go/utils/log"

"github.com/jfrog/jfrog-client-go/utils/io"
Expand Down Expand Up @@ -80,7 +81,7 @@ func GetEncryptedPasswordFromArtifactory(artifactoryAuth auth.ServiceDetails, in
return "", errorutils.CheckErrorf(message)
}

return "", errorutils.CheckErrorf("Artifactory response: " + resp.Status)
return "", errorutils.CheckErrorf("Artifactory response: " + resp.Status + "\n" + clientutils.IndentJson(body))
}

func CreateServiceManager(serverDetails *config.ServerDetails, httpRetries, httpRetryWaitMilliSecs int, isDryRun bool) (artifactory.ArtifactoryServicesManager, error) {
Expand Down

0 comments on commit 69a0ae3

Please sign in to comment.