Skip to content

Commit

Permalink
Revert emit ResourceSyncException
Browse files Browse the repository at this point in the history
Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com>
  • Loading branch information
ellykits committed Oct 17, 2022
1 parent 5a6f8b7 commit 0913137
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import com.google.android.fhir.sync.DataSource
import com.google.android.fhir.sync.DownloadState
import com.google.android.fhir.sync.DownloadWorkManager
import com.google.android.fhir.sync.Downloader
import com.google.android.fhir.sync.ResourceSyncException
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import org.hl7.fhir.r4.model.ResourceType
import timber.log.Timber

/**
* Implementation of the [Downloader]. It orchestrates the pre & post processing of resources via
Expand Down Expand Up @@ -53,7 +53,7 @@ internal class DownloaderImpl(
)
)
} catch (exception: Exception) {
Timber.e(exception, "Resource type $resourceTypeToDownload failed to sync")
emit(DownloadState.Failure(ResourceSyncException(resourceTypeToDownload, exception)))
}

url = downloadWorkManager.getNextRequestUrl(context)
Expand Down

0 comments on commit 0913137

Please sign in to comment.