-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Throw error if disk cannot be accessed #3067
Throw error if disk cannot be accessed #3067
Conversation
@Silver343 Maybe a better approach is to perform a check to see if the disk can be accessed first, and immediately fail if necessary instead of using a transaction. Thoughts? |
@Silver343 I've refactored your code to remove the use of database transactions. Are you okay with the changes I made? ping @freekmurze |
looks good to me, not sure if the change in return type to add and add remote would be considered breaking changes. |
@freekmurze I believe this PR is now ready for review. |
@freekmurze To keep this PR moving along and get it merged/closed ASAP, I've pushed the changes you requested to the unit test on behalf of the original PR author (since they were minor). Would you please re-review at your convenience? Thanks! 👍 |
Thanks! |
This PR changes the behaviour when a filesytem cannot be accessed as seen in #3010, it will throw and exception and not create a new media record.