From b01c8e06e08ce1dc22a3680e3f3a02efdf02b6f9 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Thu, 5 Sep 2019 17:43:59 +0100 Subject: [PATCH] Update error name to ErrClientNotFound --- network/default.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/default.go b/network/default.go index 4d8b1156..3da04650 100644 --- a/network/default.go +++ b/network/default.go @@ -29,8 +29,8 @@ var ( DefaultLink = "network" // ErrMsgUnknown is returned when unknown message is attempted to send or receive ErrMsgUnknown = errors.New("unknown message") - // ErrChannelUnknown is returned when attempting to send or received on unknown channel - ErrChannelUnknown = errors.New("unknown channel") + // ErrClientNotFound is returned when client for tunnel channel could not be found + ErrClientNotFound = errors.New("client not found") ) // node is network node @@ -462,7 +462,7 @@ func (n *network) sendMsg(msgType string, channel string) error { client, ok := n.tunClient[channel] if !ok { n.RUnlock() - return ErrChannelUnknown + return ErrClientNotFound } n.RUnlock()