You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix incorrectly wrapped strings by localization routines (#414)
This commit fixes#413. Additionally, nonf variants of functions in output pkg
have been added so that string returned by localization routine is printed as
is and no further format specifier substitution can take place.
Copy file name to clipboardExpand all lines: cmd/modern/root/config/add-user.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ func (c *AddUser) run() {
106
106
107
107
ifc.authType!="basic"&&
108
108
c.authType!="other" {
109
-
output.FatalfWithHints([]string{localizer.Sprintf("Authentication type must be '%s' or '%s'", localizer.ModernAuthTypeBasic, localizer.ModernAuthTypeOther)},
109
+
output.FatalWithHints([]string{localizer.Sprintf("Authentication type must be '%s' or '%s'", localizer.ModernAuthTypeBasic, localizer.ModernAuthTypeOther)},
110
110
localizer.Sprintf("Authentication type '' is not valid %v'", c.authType))
111
111
}
112
112
@@ -136,15 +136,15 @@ func (c *AddUser) run() {
136
136
}
137
137
138
138
ifc.username=="" {
139
-
output.FatalfWithHintExamples([][]string{
139
+
output.FatalWithHintExamples([][]string{
140
140
{localizer.Sprintf("Provide a username with the %s flag"),
0 commit comments