diff --git a/deploy.go b/deploy.go index 70d8b5a..e488b34 100644 --- a/deploy.go +++ b/deploy.go @@ -438,7 +438,9 @@ func (gc *GatewayClient) ValidateMDMDetails(mdmTopologyParam []byte) (*types.Gat return &gatewayResponse, nil } else if httpResp.StatusCode == 200 && responseString == "" { - return &gatewayResponse, errors.New("Wrong Primary MDM IP, Please provide valid Primary MDM IP") + gatewayResponse.Message = "Wrong Primary MDM IP, Please provide valid Primary MDM IP" + + return &gatewayResponse, fmt.Errorf("Wrong Primary MDM IP, Please provide valid Primary MDM IP") } if gc.version == "4.0" {