return response message in case of error to extract information from response object.

Signed-off-by: Suchith Arodi <suchith.arodi@gmail.com>
This commit is contained in:
SuchithArodi 2020-07-29 13:00:09 -07:00
parent cf669f9b83
commit ab569c598c

View file

@ -688,7 +688,7 @@ func (r *realisClient) CreateService(
return resp, resp.GetResult_().GetStartJobUpdateResult_(), nil return resp, resp.GetResult_().GetStartJobUpdateResult_(), nil
} }
return nil, nil, errors.New("job is unchanged by proposed update") return resp, nil, errors.New("results object is nil")
} }
func (r *realisClient) ScheduleCronJob(auroraJob Job) (*aurora.Response, error) { func (r *realisClient) ScheduleCronJob(auroraJob Job) (*aurora.Response, error) {