Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes #868: Adds sending of error from getPool for all invalid keys
Browse files Browse the repository at this point in the history
  • Loading branch information
IRCody committed Apr 21, 2016
1 parent c914792 commit 81601f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/available_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ func (ap *availablePlugins) getPool(key string) (strategy.Pool, serror.SnapError
if v < 1 {
return ap.findLatestPool(tnv[0], tnv[1])
}

return nil, nil
// No key found
return nil, serror.New(ErrBadKey, map[string]interface{}{"key": key})
}

return pool, nil
Expand Down

0 comments on commit 81601f0

Please sign in to comment.