mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-10 01:14:04 +00:00
finally fixing this issue
This commit is contained in:
parent
061ee338a3
commit
4b5e0ab1d0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue