Skip to content

Commit

Permalink
Make logging more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 18, 2018
1 parent 6ead888 commit aeb9060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/mem_repository.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package store

import (
"errors"
"fmt"

cache "github.com/patrickmn/go-cache"
)
Expand Down Expand Up @@ -29,5 +29,5 @@ func (r *MemRepo) Get(key string) (string, error) {
if found {
return value.(string), nil
}
return "", errors.New("no value found for this key")
return "", fmt.Errorf("no value found for key '%s'", key)
}

0 comments on commit aeb9060

Please sign in to comment.