-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: Catch excecption on Asset uploading [WPB-10700] #3024
Conversation
} | ||
} catch (e: IOException) { | ||
kaliumLogger.e("Something went wrong when uploading the Asset Message. $e") | ||
return Either.Left(EncryptionFailure.GenericEncryptionError) |
There was a problem hiding this comment.
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
return Either.Left(EncryptionFailure.GenericEncryptionError) | |
return Either.Left(CoreFailure.Unknown(e)) |
Datadog ReportBranch report: ✅ 0 Failed, 3088 Passed, 107 Skipped, 13.69s Total Time |
Quality Gate passedIssues Measures |
* fix: Catch excecption on Asset uploading * Review fixes
* fix: Catch excecption on Asset uploading * Review fixes Co-authored-by: boris <[email protected]> Co-authored-by: Vitor Hugo Schwaab <[email protected]>
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.