Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: remove gprc header error stack (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuLiangWang committed Jul 27, 2023
1 parent ca094dc commit 22ed580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/service/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ func responseHeader(err error, msg string) *commonpb.ResponseHeader {

code, ok := coderr.GetCauseCode(err)
if ok {
return &commonpb.ResponseHeader{Code: uint32(code), Error: msg + err.Error()}
return &commonpb.ResponseHeader{Code: uint32(code), Error: msg}
}

return &commonpb.ResponseHeader{Code: coderr.Internal, Error: msg + err.Error()}
return &commonpb.ResponseHeader{Code: coderr.Internal, Error: msg}
}

func (s *Service) allow() (bool, error) {
Expand Down

0 comments on commit 22ed580

Please sign in to comment.