jason 075d766964 first | 3 gadi atpakaļ | |
---|---|---|
.. | ||
client | 3 gadi atpakaļ | |
server | 3 gadi atpakaļ | |
README.md | 3 gadi atpakaļ |
This example demonstrates the use of status details in grpc errors.
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.