grpc-go/examples/features/errors
Hrishi Hiraskar 467630fc24
examples: remove usage of WithBlock in examples (#4858)
2021-11-01 11:06:39 -07:00
..
client
server
README.md

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.