MCPcopy
hub / github.com/syncthing/syncthing / newProtocolError

Function newProtocolError

lib/protocol/protocol.go:1098–1100  ·  view source on GitHub ↗
(err error, msgContext string)

Source from the content-addressed store, hash-verified

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

Callers 1

dispatcherLoopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected