Skip to content

Commit

Permalink
topom: show error message if check xauth fails
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Feb 15, 2017
1 parent 913063b commit ed10b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/topom/topom_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed10b1d

Please sign in to comment.