user update

This commit is contained in:
Gordon 2023-03-16 18:18:59 +08:00
parent a60dc3189c
commit 5c38ffa15e

View File

@ -45,9 +45,9 @@ func rpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
Cause: fmt.Sprintf("%s", r),
Warp: nil,
}
sta, err := status.New(codes.Code(errs.ErrInternalServer.Code()), errs.ErrInternalServer.Msg()).WithDetails(errInfo)
if err != nil {
panic(err)
sta, err_ := status.New(codes.Code(errs.ErrInternalServer.Code()), errs.ErrInternalServer.Msg()).WithDetails(errInfo)
if err_ != nil {
panic(err_)
}
err = sta.Err()
}