mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #91] [MERGED] Handle regular and player error objects #237
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/91
Author: @sputnick1124
Created: 4/23/2020
Status: ✅ Merged
Merged: 5/4/2020
Merged by: @ramsayleung
Base:
master← Head:error-reporting📝 Commits (3)
b7b7c6fHandle regular and player error objectsedd61e1Improve error reporting for blocking API02ab558Make clippy happy📊 Changes
3 files changed (+70 additions, -13 deletions)
View changed files
📝
src/blocking/client.rs(+34 -6)📝
src/client.rs(+36 -6)📝
src/oauth2.rs(+0 -1)📄 Description
Addresses #63.
There is a message given alongside most API errors, but it has been
thrown away until now. This commit presents the full JSON object to the
end consumer of the error (see error object, player error object)
The
From<&Response>impl was removed and replaced with a non-traitfrom_responsemethod so that the asyncResponse::jsonmethod could be called.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.