From ed10b1d48f3f45643dc23a906f1a49ff07db20df Mon Sep 17 00:00:00 2001 From: spinlock Date: Mon, 6 Feb 2017 22:49:52 +0800 Subject: [PATCH] topom: show error message if check xauth fails --- pkg/topom/topom_proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/topom/topom_proxy.go b/pkg/topom/topom_proxy.go index b694506d4..22a169bc8 100644 --- a/pkg/topom/topom_proxy.go +++ b/pkg/topom/topom_proxy.go @@ -21,12 +21,12 @@ func (s *Topom) CreateProxy(addr string) error { p, err := proxy.NewApiClient(addr).Model() if err != nil { - return errors.Errorf("proxy@%s fetch model failed", addr) + return errors.Errorf("proxy@%s fetch model failed, %s", addr, err) } c := s.newProxyClient(p) if err := c.XPing(); err != nil { - return errors.Errorf("proxy@%s check xauth failed", addr) + return errors.Errorf("proxy@%s check xauth failed, %s", addr, err) } if ctx.proxy[p.Token] != nil { return errors.Errorf("proxy-[%s] already exists", p.Token)