Err returns an error value if the issues list contains one or more errors.
()
| 1082 | |
| 1083 | // Err returns an error value if the issues list contains one or more errors. |
| 1084 | func (i *Issues) Err() error { |
| 1085 | if i == nil { |
| 1086 | return nil |
| 1087 | } |
| 1088 | if len(i.Errors()) > 0 { |
| 1089 | return errors.New(i.String()) |
| 1090 | } |
| 1091 | return nil |
| 1092 | } |
| 1093 | |
| 1094 | // Errors returns the collection of errors encountered in more granular detail. |
| 1095 | func (i *Issues) Errors() []*Error { |