Skip to content

Commit

Permalink
Merge pull request #476 from JacieChao/update-readme
Browse files Browse the repository at this point in the history
Change missing method GetError to GetErrorEscaped in docs
  • Loading branch information
andrueastman authored Nov 13, 2024
2 parents 5dee741 + 7889c8d commit 54a50c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,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 Expand Up @@ -140,7 +140,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 54a50c6

Please sign in to comment.