Skip to content

Commit

Permalink
feat: add detailed redis error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Nov 6, 2024
1 parent 506a10a commit 78614fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/core/plugin_manager/serverless.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package plugin_manager

import (
"errors"
"fmt"
"time"

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 78614fd

Please sign in to comment.