addError adds an error for a topic to the set. The wrap preserves the underlying error for errors.Is/As.
(topic string, err error)
| 15 | // addError adds an error for a topic to the set. The wrap preserves |
| 16 | // the underlying error for errors.Is/As. |
| 17 | func (e refreshError) addError(topic string, err error) { |
| 18 | e[topic] = fmt.Errorf("%s: %w", topic, err) |
| 19 | } |
| 20 | |
| 21 | func (e refreshError) Error() string { |
| 22 | err := errors.Join(e.errors()...) |