Skip to content

Commit

Permalink
Merge pull request #71 from co-brick/AIOPS-2771
Browse files Browse the repository at this point in the history
Fix nil dereference error
  • Loading branch information
blind-oracle committed Mar 26, 2024
2 parents b3a78fa + d903092 commit c02f734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor.go
Expand Up @@ -188,7 +188,7 @@ func (p *processor) handle(ctx *fh.RequestCtx) {
if p.cfg.Metadata && p.cfg.Tenant.Default != "" {
r := p.send(clientIP, reqID, tenantPrefix+p.cfg.Tenant.Default, wrReqIn)
if r.err != nil {
ctx.Error(err.Error(), fh.StatusInternalServerError)
ctx.Error(r.err.Error(), fh.StatusInternalServerError)
p.Errorf("src=%s req_id=%s: unable to proxy metadata: %s", clientIP, reqID, r.err)
return
}
Expand Down

0 comments on commit c02f734

Please sign in to comment.