mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[CoreData]: Fix: propagate coredata errors properly
This commit is contained in:
@@ -626,6 +626,11 @@ extension AppManager
|
||||
self.fetchSources() { (result) in
|
||||
do
|
||||
{
|
||||
// Check if the result is failure and rethrow
|
||||
if case .failure(let error) = result {
|
||||
throw error // Rethrow the error
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
let (_, context) = try result.get()
|
||||
|
||||
Reference in New Issue
Block a user