()
| 501 | } |
| 502 | |
| 503 | func (ce CloseError) Error() string { |
| 504 | return fmt.Sprintf("status = %v and reason = %q", ce.Code, ce.Reason) |
| 505 | } |
| 506 | |
| 507 | // CloseStatus is a convenience wrapper around Go 1.13's errors.As to grab |
| 508 | // the status code from a CloseError. |