We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b69cbf commit c910144Copy full SHA for c910144
1 file changed
internal/cmd/auth/login.go
@@ -66,7 +66,11 @@ func LoginCmd(ch *cmdutil.Helper) *cobra.Command {
66
67
err = config.WriteAccessToken(accessToken)
68
if err != nil {
69
- return fmt.Errorf("error logging in: %w", err)
+ configDir, configErr := config.ConfigDir()
70
+ if configErr != nil {
71
+ ch.Printer.Printf("Error looking up configuration directory: %s\n", printer.BoldRed(configErr.Error()))
72
+ }
73
+ return fmt.Errorf("error logging in: %w\n\nPlease ensure you have write permissions to the configuration directory: %s", err, configDir)
74
}
75
76
// We explicitly stop here so we can replace the spinner with our success
0 commit comments