Skip to content

Commit

Permalink
[RFR-1187] Handle NoLocationData exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Oct 23, 2024
1 parent bba2b3c commit 8fce766
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ internal class SyncPerformer(private val context: Context, private val fromBackg
Result.UPLOAD_SKIPPED
}

is NoLocationData -> {
syncResult.stats.numSkippedEntries++
Log.d(TAG, e.message!!)
Result.UPLOAD_SKIPPED
}

is ConflictException -> {
syncResult.stats.numSkippedEntries++
// We consider the upload successful and mark the measurement as synced
Expand Down

0 comments on commit 8fce766

Please sign in to comment.