diff options
Diffstat (limited to 'network/protocol/v0v1/server/receivepack/errors.go')
| -rw-r--r-- | network/protocol/v0v1/server/receivepack/errors.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/network/protocol/v0v1/server/receivepack/errors.go b/network/protocol/v0v1/server/receivepack/errors.go new file mode 100644 index 00000000..d89f8959 --- /dev/null +++ b/network/protocol/v0v1/server/receivepack/errors.go @@ -0,0 +1,11 @@ +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 +} |
