Merge pull request #35 from Pungyeon/fix/issue_28

finally fixing this issue
This commit is contained in:
Lasse Martin Jakobsen 2019-12-06 19:57:57 +01:00 committed by GitHub
commit 0595e82363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -780,7 +780,9 @@ func (store *Store) GetItem(id string) (Item, error) {
item, ok := store.items[id] item, ok := store.items[id]
if !ok { 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 return item, nil
} }