feat: removed root flag and added description for domain

This commit is contained in:
=
2025-01-22 12:18:58 +05:30
parent d627ecf05d
commit a35d1aa72b
2 changed files with 1 additions and 11 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ var loginCmd = &cobra.Command{
if err != nil {
euErrorMessage := ""
if strings.HasPrefix(config.INFISICAL_URL, util.INFISICAL_DEFAULT_US_URL) {
euErrorMessage = "\nIf you are using the Infisical Cloud Europe Region, please switch to it by using the \"--region eu\" flag."
euErrorMessage = fmt.Sprintf("\nIf you are using the Infisical Cloud Europe Region, please switch to it by using the \"--domain %s\" flag.", util.INFISICAL_DEFAULT_EU_URL)
}
util.HandleError(fmt.Errorf("unable to authenticate with %s [err=%v].%s", formatAuthMethod(loginMethod), err, euErrorMessage))
}