Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 21, 2023
1 parent 06779f3 commit 7a002ef
Show file tree
Hide file tree
Showing 10 changed files with 18,803 additions and 18,283 deletions.
5 changes: 3 additions & 2 deletions gosnappi/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (api *api) FromError(err error) (Error, bool) {
func (api *api) setResponseErr(obj Error, code int32, message string) {
errors := []string{}
errors = append(errors, message)
obj.Msg().Code = code
obj.Msg().Code = &code
obj.Msg().Errors = errors
}

Expand All @@ -218,7 +218,8 @@ func (api *api) fromGrpcError(err error) (Error, bool) {
if ok {
rErr := NewError()
if err := rErr.FromJson(st.Message()); err == nil {
rErr.Msg().Code = int32(st.Code())
var code = int32(st.Code())
rErr.Msg().Code = &code
return rErr, true
}

Expand Down
Loading

0 comments on commit 7a002ef

Please sign in to comment.