Repository: calcite-avatica-go Updated Branches: refs/heads/master c0fd06d67 -> 7676754fb
Update documentation to state that the Name() method on error is now a field Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/7676754f Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/7676754f Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/7676754f Branch: refs/heads/master Commit: 7676754fb73ad756f77b489bb9793c63b7fc7ff8 Parents: c0fd06d Author: Francis Chuang <[email protected]> Authored: Fri Apr 27 22:05:11 2018 +1000 Committer: Francis Chuang <[email protected]> Committed: Fri Apr 27 22:05:11 2018 +1000 ---------------------------------------------------------------------- site/_docs/go_client_reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/7676754f/site/_docs/go_client_reference.md ---------------------------------------------------------------------- diff --git a/site/_docs/go_client_reference.md b/site/_docs/go_client_reference.md index 43de2cd..2ce05f5 100644 --- a/site/_docs/go_client_reference.md +++ b/site/_docs/go_client_reference.md @@ -180,7 +180,7 @@ We recommend using `UTC`, which is the default value of `location`. The Go client comes with support for retrieving the error code when an error occurs. This is extremely useful when you want to take specific action when a particular type of error occurs. -If the error returned is a ResponseError, calling the `Name()` method on the error will return the appropriate +If the error returned is a ResponseError, the `Name`field on the error will return the appropriate Apache Phoenix error code: {% highlight go %} @@ -195,7 +195,7 @@ if !ok { } // Print the Apache Phoenix error code -fmt.Println(perr.Name()) // Prints: table_undefined +fmt.Println(perr.Name) // Prints: table_undefined {% endhighlight %} ## Version Compatibility
