Skip to content

Commit

Permalink
Fixed the error check and return new error if its not there (#2746)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh-Baranwal authored Aug 14, 2023
1 parent 534fd3c commit f2386af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/session/avisession.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,9 @@ func (avisess *AviSession) restRequest(verb string, uri string, payload interfac
glog.Error("CheckControllerStatus is disabled for this session, not going to retry.")
if err != nil {
glog.Errorf("Failed to invoke API. Error: %s", err.Error())
return nil, err
}
return nil, fmt.Errorf("Rest request error, returning to caller: %s", err.Error())
return nil, errors.New("Rest request error, returning to caller")

}
}
Expand Down

0 comments on commit f2386af

Please sign in to comment.