diff --git a/cmd/artifactPrepareVersion.go b/cmd/artifactPrepareVersion.go index 6a0691ab4..524687299 100644 --- a/cmd/artifactPrepareVersion.go +++ b/cmd/artifactPrepareVersion.go @@ -340,7 +340,7 @@ func pushChanges(config *artifactPrepareVersionOptions, newVersion string, repos log.SetErrorCategory(log.ErrorConfiguration) case strings.Contains(errText, "authentication required"): log.SetErrorCategory(log.ErrorConfiguration) - case strings.Contains(errText, "knownhosts: illegal base64"): + case strings.Contains(errText, "knownhosts:"): err = errors.Wrap(err, "known_hosts file seems invalid") log.SetErrorCategory(log.ErrorConfiguration) case strings.Contains(errText, "unable to find any valid known_hosts file"):