mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #36] [MERGED] Allow applications to perform error handling #196
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#196
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/36
Author: @hrkfdn
Created: 3/20/2019
Status: ✅ Merged
Merged: 3/21/2019
Merged by: @ramsayleung
Base:
master← Head:master📝 Commits (3)
5f4a52cprovide error information to the applicatione59cd98do not print on std streams, this will garble ncurses applications6029b8fmake sure api errors don't get swallowed by convert_result📊 Changes
1 file changed (+116 additions, -90 deletions)
View changed files
📝
src/spotify/client.rs(+116 -90)📄 Description
Currently, applications using rspotify can not easily determine why an API request has failed. However, this may be necessary to handle certain errors such as rate limits imposed by Spotify or expired authentication tokens.
This patch gives applications the opportunity to handle these situations. For instance, if a rate limit error occurs, the application can wait for the specified delay and retry the request.
Closes #35
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.