Skip to content

Commit

Permalink
♻️ refactor: update codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Dec 14, 2024
1 parent 286f18d commit 10d733e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ func Parse(json string) (w *wrapper, err error) {
var data map[string]interface{}
err = unify4g.UnmarshalFromStringN(json, &data)
if err != nil {
return nil, err
return nil, WithErrStack(err)
}
if len(data) == 0 {
return nil, WithErrorf("the wrapper response is empty with JSON string: %v", json)
Expand Down

0 comments on commit 10d733e

Please sign in to comment.