[proxy] print all stderr from callWeave to the proxy logs, even if successful

This commit is contained in:
Paul Bellamy committed 2015-07-03 15:45:09 +01:00
1 parent fcea6fcbf8
commit 7821412bf7
3 files changed
+13 -8

No files matched your search

+2 -2
View File
@@ -57,9 +57,9 @@ func NewProxy(c Config) (*Proxy, error) {
p.client = client
if !p.WithoutDNS {
dockerBridgeIP, err := callWeave("docker-bridge-ip")
dockerBridgeIP, stderr, err := callWeave("docker-bridge-ip")
if err != nil {
return nil, err
return nil, fmt.Errorf(string(stderr))
}
p.dockerBridgeIP = string(dockerBridgeIP)
}