diff --git a/database.go b/database.go index 45560ed..547e367 100644 --- a/database.go +++ b/database.go @@ -25,11 +25,6 @@ func newDatabaseService(url string, currency string) *DatabaseService { } } -// ReqRelease serves release request -type ReqRelease struct { - CurrAbbr string -} - // Release serves relesase response from discogs type Release struct { Title string `json:"title"` @@ -70,7 +65,7 @@ type Release struct { // Release returns release by release's ID func (s *DatabaseService) Release(releaseID int) (*Release, error) { params := url.Values{} - params.Set("CurrAbbr", s.currency) + params.Set("curr_abbr", s.currency) var release *Release if err := request(s.url+releasesURI+strconv.Itoa(releaseID), params, &release); err != nil { diff --git a/errors.go b/errors.go index 00a2fea..d87b663 100644 --- a/errors.go +++ b/errors.go @@ -11,7 +11,7 @@ type Error struct { } func (e *Error) Error() string { - return fmt.Sprintf("%s", strings.ToLower(e.Message)) + return fmt.Sprintf("discogs error: %s", strings.ToLower(e.Message)) } // APIErrors