shithub: furgit

ref: 040b572d95e4ca27e1ada6113c405b8a1eb4a669
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
}