shithub: furgit

ref: c8dd7d3b44c93a664dddc0c4619d336c6e13d2a8
dir: /protocol/v0v1/server/receivepack/errors.go/

View raw version
package receivepack

// ProtocolError reports one malformed or unsupported receive-pack protocol input.
type ProtocolError struct {
	Reason string
}

// Error returns the formatted error string.
func (err *ProtocolError) Error() string {
	return "protocol/v0v1/server/receivepack: protocol error: " + err.Reason
}