isError returns true if "typ" is type of `error`.
(typ reflect.Type)
| 184 | |
| 185 | // isError returns true if "typ" is type of `error`. |
| 186 | func isError(typ reflect.Type) bool { |
| 187 | return typ.Implements(errTyp) |
| 188 | } |
| 189 | |
| 190 | func getError(outputs []reflect.Value) error { |
| 191 | if n := len(outputs); n > 0 { |