(errInterface interface{}, strs ...string)
| 185 | } |
| 186 | |
| 187 | func CastRecoverError(errInterface interface{}, strs ...string) error { |
| 188 | var err error |
| 189 | var ok bool |
| 190 | err, ok = errInterface.(error) |
| 191 | if !ok { |
| 192 | err = &Error{ |
| 193 | Kind: ErrNotCortexError, |
| 194 | Message: fmt.Sprint(errInterface), |
| 195 | } |
| 196 | } |
| 197 | return Wrap(err, strs...) |
| 198 | } |
| 199 | |
| 200 | func removeEmptyStrs(strs []string) []string { |
| 201 | var cleanStrs []string |
no test coverage detected