Commit 49ee2798 authored by Clayton Coleman's avatar Clayton Coleman

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.
parent 218fdc75
...@@ -104,7 +104,7 @@ func (m *Master) createMasterServiceIfNeeded(serviceName string, port int) error ...@@ -104,7 +104,7 @@ func (m *Master) createMasterServiceIfNeeded(serviceName string, port int) error
// If all worked, we get back an *api.Service object. // If all worked, we get back an *api.Service object.
return nil 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 // ensureEndpointsContain sets the endpoints for the given service. Also removes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment