Skip to content

Commit

Permalink
fix: replaces additional wrong reference
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet authored Nov 12, 2024
1 parent 10cb88b commit d3dc810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func printOdataError(err error) {
case *odataerrors.ODataError:
typed := err.(*odataerrors.ODataError)
fmt.Printf("error:", typed.Error())
if terr := typed.GetError(); terr != nil {
if terr := typed.GetErrorEscaped(); terr != nil {
fmt.Printf("code: %s", *terr.GetCode())
fmt.Printf("msg: %s", *terr.GetMessage())
}
Expand Down

0 comments on commit d3dc810

Please sign in to comment.