(err error)
| 100 | } |
| 101 | |
| 102 | func ErrorInvalidYAML(err error) error { |
| 103 | str := strings.TrimPrefix(errors.Message(err), "yaml: ") |
| 104 | return errors.WithStack(&errors.Error{ |
| 105 | Kind: ErrInvalidYAML, |
| 106 | Message: fmt.Sprintf("invalid yaml: %s", str), |
| 107 | }) |
| 108 | } |
| 109 | |
| 110 | func ErrorTooLong(provided string, maxLen int) error { |
| 111 | return errors.WithStack(&errors.Error{ |
no test coverage detected