From 311edcd50f3a84f4b860bde3cb887451d74eaa11 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 25 Mar 2026 16:22:03 +0000 Subject: network/protocol: Rename from protocol --- network/protocol/v0v1/server/receivepack/errors.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 network/protocol/v0v1/server/receivepack/errors.go (limited to 'network/protocol/v0v1/server/receivepack/errors.go') 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 +} -- cgit v1.3.1-10-gc9f91