diff --git a/README.md b/README.md index 771ec503d68..923d6b6110e 100644 --- a/README.md +++ b/README.md @@ -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()) } @@ -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()) }