From b45374004e88e2b8ba2f601bda2d4b476475ceea Mon Sep 17 00:00:00 2001 From: markgao Date: Fri, 24 Nov 2023 10:55:23 +0800 Subject: [PATCH] fix: #828 server error overwritten --- server/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugin.go b/server/plugin.go index 3bc1114d..85f8d27f 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -315,7 +315,7 @@ func (p *pluginContainer) DoPreCall(ctx context.Context, serviceName, methodName // DoPostCall invokes PostCallPlugin plugin. func (p *pluginContainer) DoPostCall(ctx context.Context, serviceName, methodName string, args, reply interface{}, err error) (interface{}, error) { - var e error + e := err for i := range p.plugins { if plugin, ok := p.plugins[i].(PostCallPlugin); ok { reply, e = plugin.PostCall(ctx, serviceName, methodName, args, reply, err)