tree: 322bc50cd4b1e615fc6c0ab3442eed3e81193aea [path history] [tgz]
  1. client/
  2. server/
  3. README.md
examples/features/errors/README.md

Description

This example demonstrates the use of status details in grpc errors.

Run the sample code

Run the server:

$ go run ./server/main.go

Then run the client in another terminal:

$ go run ./client/main.go

It should succeed and print the greeting it received from the server. Then run the client again:

$ go run ./client/main.go

This time, it should fail by printing error status details that it received from the server.