From d36610e9d8d0850b0d7e95e997d6aba6bee459cf Mon Sep 17 00:00:00 2001 From: Nut He <18328704+hetao92@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:04:50 +0800 Subject: [PATCH] fix: update err info (#25) --- service/pool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/pool/pool.go b/service/pool/pool.go index 3fa89e7..bdb15f0 100644 --- a/service/pool/pool.go +++ b/service/pool/pool.go @@ -61,7 +61,7 @@ func NewConnection(address string, port int, username string, password string) ( // Initialize connectin pool pool, err := nebula.NewConnectionPool(hostList, poolConfig, nebulaLog) if err != nil { - return "", errors.New("Fail to initialize the connection pool") + return "", err } err = pool.Ping(hostList[0], 5000*time.Millisecond) if err != nil {