()
| 33 | } |
| 34 | |
| 35 | func (je joinedError) Error() string { |
| 36 | msg := []string{} |
| 37 | for _, err := range je.errs { |
| 38 | msg = append(msg, err.Error()) |
| 39 | } |
| 40 | |
| 41 | return strings.Join(msg, ", ") |
| 42 | } |
| 43 | |
| 44 | // joinErrors joins together multiple errors. Useful for scenarios where |
| 45 | // multiple errors next to each other occur, e.g., in claims validation. |
no outgoing calls