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
returnfmt.Errorf("description for param %s is too long in template %s. allowed: %d. actual length: %d. use help field for details instead.", p.Name, t.Template, maxLength, actualLength)
72
+
returnfmt.Errorf("param %s: description too long (%d/%d allowed)- use help instead", p.Name, actualLength, maxLength)
73
73
}
74
74
75
75
switchp.Name {
76
76
caseParamUsage:
77
77
for_, c:=rangep.Choice {
78
78
if!slices.Contains(UsageStrings(), c) {
79
-
returnfmt.Errorf("invalid usage choice '%s' in template %s", c, t.Template)
79
+
returnfmt.Errorf("invalid usage: '%s'", c)
80
80
}
81
81
}
82
82
caseParamModbus:
83
83
for_, c:=rangep.Choice {
84
84
if!slices.Contains(ValidModbusChoices, c) {
85
-
returnfmt.Errorf("invalid modbus choice '%s' in template %s", c, t.Template)
0 commit comments