Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
9ac268b2f0
commit
2bb81ff232
7
error.go
7
error.go
@ -35,5 +35,10 @@ func microError(err error) error {
|
||||
}
|
||||
|
||||
// fallback
|
||||
return errors.InternalServerError("go.micro.client", s.Message())
|
||||
return &errors.Error{
|
||||
Id: "go.micro.client",
|
||||
Code: int32(s.Code()),
|
||||
Detail: s.Message(),
|
||||
Status: s.Code().String(),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user