From 083abccffe7cb6b86ae44b5d0cfbcddfe2dc2e97 Mon Sep 17 00:00:00 2001 From: Paul Lorenz Date: Thu, 11 Aug 2022 13:54:13 -0400 Subject: [PATCH] Fix error type, should be misconfigured not invalid terminator --- router/xgress_edge_transport/dialer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/xgress_edge_transport/dialer.go b/router/xgress_edge_transport/dialer.go index 896664997..2791a976a 100644 --- a/router/xgress_edge_transport/dialer.go +++ b/router/xgress_edge_transport/dialer.go @@ -17,7 +17,7 @@ package xgress_edge_transport import ( - "fmt" + "github.com/pkg/errors" "time" "github.com/michaelquigley/pfxlog" @@ -55,7 +55,7 @@ func (txd *dialer) Dial(destination string, circuitId *identity.TokenId, address txDestination, err := transport.ParseAddress(destination) if err != nil { - return nil, xgress.InvalidTerminatorError{InnerError: fmt.Errorf("cannot dial on invalid address [%s] (%s)", destination, err)} + return nil, xgress.MisconfiguredTerminatorError{InnerError: errors.Wrapf(err, "cannot dial on invalid address [%s]", destination)} } log.Debug("dialing")