Log exception when exporting settings to a file fails
This commit is contained in:
parent
35dddef436
commit
11d004dc07
2 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ import androidx.lifecycle.viewModelScope
|
|||
import com.fsck.k9.Preferences
|
||||
import com.fsck.k9.helper.SingleLiveEvent
|
||||
import com.fsck.k9.helper.measureRealtimeMillis
|
||||
import com.fsck.k9.logging.Timber
|
||||
import com.fsck.k9.preferences.SettingsExporter
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
|
@ -146,6 +147,8 @@ class SettingsExportViewModel(
|
|||
showSuccessText()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Timber.e(e, "Error writing settings file")
|
||||
|
||||
updateUiModel {
|
||||
showFailureText()
|
||||
}
|
||||
|
|
|
@ -638,7 +638,6 @@
|
|||
<ID>SwallowedException:RealImapStore.kt$RealImapStore$e: CharacterCodingException</ID>
|
||||
<ID>SwallowedException:RealImapStore.kt$RealImapStore$ioe: IOException</ID>
|
||||
<ID>SwallowedException:SaveMessageOperations.kt$SaveMessageOperations$e: IOException</ID>
|
||||
<ID>SwallowedException:SettingsExportViewModel.kt$SettingsExportViewModel$e: Exception</ID>
|
||||
<ID>SwallowedException:SettingsExporter.kt$SettingsExporter$e: InvalidSettingValueException</ID>
|
||||
<ID>SwallowedException:SettingsListFragment.kt$SettingsListFragment$e: ActivityNotFoundException</ID>
|
||||
<ID>SwallowedException:SmtpTransport.kt$SmtpTransport$e: NegativeSmtpReplyException</ID>
|
||||
|
@ -802,7 +801,6 @@
|
|||
<ID>UnusedPrivateMember:HttpUriParser.kt$HttpUriParser$i</ID>
|
||||
<ID>UnusedPrivateMember:MessageListLoader.kt$MessageListLoader$account: Account</ID>
|
||||
<ID>UnusedPrivateMember:MessageViewFragment.kt$MessageViewFragment$requestKey: String</ID>
|
||||
<ID>UnusedPrivateMember:NewSetupUiHack.kt$NewSetupUiHack$builder: SettingsListBuilder</ID>
|
||||
<ID>UseCheckOrError:OutboxStateRepository.kt$OutboxStateRepository$throw IllegalStateException("No outbox_state entry for message with id $messageId")</ID>
|
||||
<ID>UseCheckOrError:ThemeExtensions.kt$throw IllegalStateException("Couldn't resolve attribute ($attrId)")</ID>
|
||||
<ID>UseRequire:MimeParameterEncoder.kt$MimeParameterEncoder$throw IllegalArgumentException("Unsupported character: $c")</ID>
|
||||
|
|
Loading…
Reference in a new issue