mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 14:47:44 +00:00
make error description show in the message detail activity
This commit is contained in:
@@ -50,7 +50,7 @@ class MnemonicCodec(private val loadFileContents: (String) -> String) {
|
||||
}
|
||||
}
|
||||
|
||||
sealed class DecodingError(val description: String) : Exception() {
|
||||
sealed class DecodingError(val description: String) : Exception(description) {
|
||||
object Generic : DecodingError("Something went wrong. Please check your mnemonic and try again.")
|
||||
object InputTooShort : DecodingError("Looks like you didn't enter enough words. Please check your mnemonic and try again.")
|
||||
object MissingLastWord : DecodingError("You seem to be missing the last word of your mnemonic. Please check what you entered and try again.")
|
||||
|
Reference in New Issue
Block a user