[CoreData]: Fix: propagate coredata errors properly

This commit is contained in:
Magesh K
2025-01-20 23:03:45 +05:30
parent eb539cd7f6
commit 8935ba08b4
2 changed files with 8 additions and 0 deletions

View File

@@ -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()