Skip to content

Commit

Permalink
fix: update err info (vesoft-inc#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 committed Jul 13, 2021
1 parent 5b5d340 commit d36610e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d36610e

Please sign in to comment.