Skip to content

Commit

Permalink
feat: add detailed plugin not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Nov 6, 2024
1 parent 670096c commit 506a10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/plugin_manager/serverless.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (p *PluginManager) getServerlessPluginRuntimeModel(
p.getServerlessRuntimeCacheKey(identity),
)
if err != nil && err != cache.ErrNotFound {
return nil, errors.New("plugin not found")
return nil, errors.New("unexpected error occurred during fetch serverless runtime cache")
}

if err == cache.ErrNotFound {
Expand All @@ -75,7 +75,7 @@ func (p *PluginManager) getServerlessPluginRuntimeModel(
)

if err == db.ErrDatabaseNotFound {
return nil, errors.New("plugin not found")
return nil, fmt.Errorf("plugin not found: %s", identity.String())
}

if err != nil {
Expand Down

0 comments on commit 506a10a

Please sign in to comment.