MCPcopy
hub / github.com/1Password/for-open-source / AddError

Method AddError

script/validator.go:40–46  ·  view source on GitHub ↗
(section, value, message string)

Source from the content-addressed store, hash-verified

38}
39
40func (v *Validator) AddError(section, value, message string) {
41 v.Errors = append(v.Errors, ValidationError{
42 Section: section,
43 Value: value,
44 Message: message,
45 })
46}
47
48func (v *Validator) HasError(section string) bool {
49 for _, err := range v.Errors {

Callers 4

ParseMethod · 0.80
stringSectionMethod · 0.80
intSectionMethod · 0.80
boolSectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected