Skip to content

Commit

Permalink
chore: Report upload session start unknown errors to Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Mar 5, 2025
1 parent d010c77 commit 4f08ae6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ class UploadSessionStarter @Inject constructor(
is IntegrityException -> Result.AppIntegrityIssue
is ContainerErrorsException.EmailValidationRequired -> Result.EmailValidationRequired
is ContainerErrorsException.DomainBlockedException -> Result.RestrictedLocation
else -> Result.OtherIssue(t)
else -> {
SentryLog.e(TAG, "Unexpected issue while starting the upload session", t)
Result.OtherIssue(t)
}
}
}

Expand All @@ -96,3 +99,5 @@ class UploadSessionStarter @Inject constructor(
return attestationToken
}
}

private const val TAG = "UploadSessionStarter"

0 comments on commit 4f08ae6

Please sign in to comment.