Skip to content

Commit

Permalink
fix lint (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 authored Aug 15, 2024
1 parent 90eb188 commit 73fa95c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libplugin/pluginbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (s *server) UpstreamAuthFailureNotice(ctx context.Context, req *UpstreamAut
methods = append(methods, m)
}

s.config.UpstreamAuthFailureCallback(req.Meta, req.Method, fmt.Errorf(req.Error), methods)
s.config.UpstreamAuthFailureCallback(req.Meta, req.Method, fmt.Errorf("%v", req.Error), methods)

return &UpstreamAuthFailureNoticeResponse{}, nil
}
Expand Down Expand Up @@ -436,7 +436,7 @@ func (s *server) PipeErrorNotice(ctx context.Context, req *PipeErrorNoticeReques
return nil, status.Errorf(codes.Unimplemented, "method PipeErrorNotice not implemented")
}

s.config.PipeErrorCallback(req.Meta, fmt.Errorf(req.Error))
s.config.PipeErrorCallback(req.Meta, fmt.Errorf("%v", req.Error))

return &PipeErrorNoticeResponse{}, nil
}
Expand All @@ -446,7 +446,7 @@ func (s *server) PipeCreateErrorNotice(ctx context.Context, req *PipeCreateError
return nil, status.Errorf(codes.Unimplemented, "method PipeCreateErrorNotice not implemented")
}

s.config.PipeCreateErrorCallback(req.FromAddr, fmt.Errorf(req.Error))
s.config.PipeCreateErrorCallback(req.FromAddr, fmt.Errorf("%v", req.Error))

return &PipeCreateErrorNoticeResponse{}, nil
}

0 comments on commit 73fa95c

Please sign in to comment.