From ab569c598cad382b01ab19c3e13cb527bfc1e61a Mon Sep 17 00:00:00 2001 From: SuchithArodi Date: Wed, 29 Jul 2020 13:00:09 -0700 Subject: [PATCH] return response message in case of error to extract information from response object. Signed-off-by: Suchith Arodi --- realis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realis.go b/realis.go index c4e323a..5c3b8e0 100644 --- a/realis.go +++ b/realis.go @@ -688,7 +688,7 @@ func (r *realisClient) CreateService( 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) {