From 4b5e0ab1d0925731a4333ed5d1c3c7aacf24d901 Mon Sep 17 00:00:00 2001 From: Lasse Martin Jakobsen Date: Fri, 6 Dec 2019 19:57:06 +0100 Subject: [PATCH] finally fixing this issue --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3541177..2053319 100644 --- a/README.md +++ b/README.md @@ -780,7 +780,9 @@ func (store *Store) GetItem(id string) (Item, error) { item, ok := store.items[id] if !ok { - return NullItem, fmt.Errorf("Could not find item with ID: %s", id) + return NullItem, NewErrorDetails( + ErrItemNotFound, + fmt.Sprintf("could not find item with id: %s", id)) } return item, nil } @@ -847,7 +849,7 @@ type App struct { func (app *App) Cache() *KVCache { if app.cache == nil { - app.cache = NewKVCache() + app.cache = NewKVCache() } return app.cache }