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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user