grpc-go/examples/features/errors
Michael Le 8988da6e70 examples: add examples regression test script (#3118) 2019-10-31 13:11:53 -07:00
..
client examples: add examples regression test script (#3118) 2019-10-31 13:11:53 -07:00
server examples: add Unimplemented___Server to all example servers (#3071) 2019-10-04 10:54:09 -07:00
README.md example: errors (#2534) 2018-12-21 16:55:49 -08:00

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.