From 49ee27988dd767df3aa5583b432ce2d586681dd7 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Fri, 30 Jan 2015 18:27:50 -0500 Subject: [PATCH] Print the returned object in the event of a publish error resp.Object is a pointer, so printing resp doesn't show what the server returned. --- pkg/master/publish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/master/publish.go b/pkg/master/publish.go index 41b91b6af2a..1f9477e0384 100644 --- a/pkg/master/publish.go +++ b/pkg/master/publish.go @@ -104,7 +104,7 @@ func (m *Master) createMasterServiceIfNeeded(serviceName string, port int) error // If all worked, we get back an *api.Service object. return nil } - return fmt.Errorf("unexpected response: %#v", resp) + return fmt.Errorf("unexpected response: %#v", resp.Object) } // ensureEndpointsContain sets the endpoints for the given service. Also removes