Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exception handling if a horcrux is not found on the user's file storage service #43

Open
amansharma2910 opened this issue Apr 12, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@amansharma2910
Copy link
Member

Right now, there is no error handling implemented for the case when due to some reason, a horcrux is not found on one of user's file storage services (for example in case the user deletes a horcrux by mistake).

Implement the error handling for uploads, downloads and delete API. In case the exception handling is triggered, delete the file record from the database as well, and then return a valid response in the form of {"message": "Horcrux not found on user's account. The file is no longer readable. Deleting from the chamber."}

@amansharma2910 amansharma2910 added bug Something isn't working help wanted Extra attention is needed labels Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant