diff --git a/cmd/auth/login.go b/cmd/auth/login.go index bbc88c12..b0bc7a85 100644 --- a/cmd/auth/login.go +++ b/cmd/auth/login.go @@ -133,7 +133,7 @@ func setHost(ctx context.Context, profileName string, persistentAuth *auth.Persi return p.Name == profileName }) // Tolerate ErrNoConfiguration here, as we will write out a configuration as part of the login flow. - if !errors.Is(err, databrickscfg.ErrNoConfiguration) { + if err != nil && !errors.Is(err, databrickscfg.ErrNoConfiguration) { return err } if persistentAuth.Host == "" {