Skip to content

Commit

Permalink
Change missing method GetError to GetErrorEscaped in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JacieChao committed Nov 12, 2024
1 parent ca6f25e commit 10cb88b
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 @@ -144,7 +144,7 @@ func printOdataError(err error) {
case *odataerrors.ODataError:
typed := err.(*odataerrors.ODataError)
fmt.Printf("error: %s", 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 10cb88b

Please sign in to comment.