mirror of
https://github.com/Xevion/scla-unsubscribe.git
synced 2025-12-06 01:16:15 -06:00
Warn on empty directory cache
This commit is contained in:
@@ -208,6 +208,7 @@ func GetDirectoryCached(letter string) ([]Entry, error) {
|
||||
|
||||
// Check if key was found
|
||||
if err == badger.ErrKeyNotFound {
|
||||
log.Warn().Str("letter", letter).Str("key", key).Msg("Directory Cache Not Found")
|
||||
return nil
|
||||
} else if err != nil {
|
||||
return errors.Wrap(err, "failed to get directory cache")
|
||||
|
||||
Reference in New Issue
Block a user