(err error, msgContext string)
| 1096 | } |
| 1097 | |
| 1098 | func newProtocolError(err error, msgContext string) error { |
| 1099 | return fmt.Errorf("protocol error on %v: %w", msgContext, err) |
| 1100 | } |
| 1101 | |
| 1102 | func newHandleError(err error, msgContext string) error { |
| 1103 | return fmt.Errorf("handling %v: %w", msgContext, err) |