Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Catch excecption on Asset uploading [WPB-10700] #3024

Merged

Conversation

borichellow
Copy link
Contributor

@borichellow borichellow commented Sep 24, 2024

BugWPB-10700 [Android] file not found when sending assets

What's new in this PR?

Issues

FileNotFoundException on sending asset message.

Causes (Optional)

Couldn't reproduce it, or find out the actual reason.

Solutions

Wrap it to try catch to at least not crash the app.

}
} catch (e: IOException) {
kaliumLogger.e("Something went wrong when uploading the Asset Message. $e")
return Either.Left(EncryptionFailure.GenericEncryptionError)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you can return a generic error and pass the exception to it

Suggested change
return Either.Left(EncryptionFailure.GenericEncryptionError)
return Either.Left(CoreFailure.Unknown(e))

Copy link
Contributor

github-actions bot commented Sep 24, 2024

Test Results

3 195 tests  ±0   3 088 ✔️ ±0   3m 44s ⏱️ -12s
   548 suites ±0      107 💤 ±0 
   548 files   ±0          0 ±0 

Results for commit 2a29e9e. ± Comparison against base commit ed2bd50.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Sep 24, 2024

Datadog Report

Branch report: fix/catch_exception_on_asset_uploading
Commit report: ced7fb9
Test service: kalium-jvm

✅ 0 Failed, 3088 Passed, 107 Skipped, 13.69s Total Time

Copy link

sonarcloud bot commented Sep 24, 2024

@MohamadJaara MohamadJaara added this pull request to the merge queue Sep 25, 2024
Merged via the queue into release/candidate with commit 8af4c1b Sep 25, 2024
22 checks passed
@MohamadJaara MohamadJaara deleted the fix/catch_exception_on_asset_uploading branch September 25, 2024 07:24
github-actions bot pushed a commit that referenced this pull request Sep 25, 2024
* fix: Catch excecption on Asset uploading

* Review fixes
github-merge-queue bot pushed a commit that referenced this pull request Sep 25, 2024
* fix: Catch excecption on Asset uploading

* Review fixes

Co-authored-by: boris <[email protected]>
Co-authored-by: Vitor Hugo Schwaab <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants