2025-07-09 12:35:19: merge [main:9f485b5e57937029be52e58137ef79ad5c3ca524];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s

This commit is contained in:
txix committed 2025-07-09 12:35:19 +03:00
1 parent a30582fa38
commit 689f730a3e
3 files changed
+6 -4

No files matched your search

+3 -3
View File
@@ -95,13 +95,13 @@ func (p Grpc) Handle(ctx *request.Context) error {
Body: &isp.Message_BytesBody{BytesBody: body},
})
if err != nil {
return p.handleError(err, ctx.ResponseWriter())
return p.handleError(err, ctx.ResponseWriter(), ctx.Endpoint())
}
return p.writeResponse(http.StatusOK, result.GetBytesBody(), requestId, ctx.ResponseWriter())
}
func (p Grpc) handleError(err error, w http.ResponseWriter) error {
func (p Grpc) handleError(err error, w http.ResponseWriter, endpoint string) error {
status, ok := status.FromError(err)
if !ok {
return httperrors.New(
@@ -131,7 +131,7 @@ func (p Grpc) handleError(err error, w http.ResponseWriter) error {
return httperrors.New(
statusCode,
status.Message(),
status.Err(),
errors.WithMessagef(err, "isp-routing-service: proxy '%s'", endpoint),
)
}