1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

errors: add errors coder (#946)

* add errors coder

* rename internal http to httputil

* add errors proto
This commit is contained in:
Tony Chen
2021-05-25 00:56:31 +08:00
committed by GitHub
parent 9a3a02fc68
commit cc0221b5ce
12 changed files with 326 additions and 119 deletions
+1
View File
@@ -36,6 +36,7 @@ func callHTTP() {
}
log.Printf("[http] SayHello %s\n", reply.Message)
// returns error
reply, err = client.SayHello(context.Background(), &pb.HelloRequest{Name: "error"})
if err != nil {
log.Printf("[http] SayHello error: %v\n", err)