From 78614fde18091a22bb5082264f032f95a0cce8e3 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Wed, 6 Nov 2024 22:55:38 +0800 Subject: [PATCH] feat: add detailed redis error messages --- internal/core/plugin_manager/serverless.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/core/plugin_manager/serverless.go b/internal/core/plugin_manager/serverless.go index a3a1de3..1388624 100644 --- a/internal/core/plugin_manager/serverless.go +++ b/internal/core/plugin_manager/serverless.go @@ -1,7 +1,6 @@ package plugin_manager import ( - "errors" "fmt" "time" @@ -66,7 +65,7 @@ func (p *PluginManager) getServerlessPluginRuntimeModel( p.getServerlessRuntimeCacheKey(identity), ) if err != nil && err != cache.ErrNotFound { - return nil, errors.New("unexpected error occurred during fetch serverless runtime cache") + return nil, fmt.Errorf("unexpected error occurred during fetch serverless runtime cache: %v", err) } if err == cache.ErrNotFound {