Skip to content

Commit

Permalink
change err
Browse files Browse the repository at this point in the history
  • Loading branch information
cadyrov committed Oct 30, 2020
1 parent aecfa10 commit 8bfa951
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions verror/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ var mpErr map[int]string = map[int]string{
}

type ErrStack struct {
Stack map[string]goerr.IError `json:"stack"`
Error goerr.IError `json:"error"`
Details map[string]goerr.IError `json:"details"`
Error goerr.IError `json:"error"`
}

func NewErrStack(message string) ErrStack {
mp := make(map[string]goerr.IError)
e := goerr.New(message)
return ErrStack{
Stack: mp,
Error: e,
Details: mp,
Error: e,
}
}

Expand Down

0 comments on commit 8bfa951

Please sign in to comment.