diff --git a/app/src/main/java/com/stevesoltys/seedvault/transport/backup/KVBackup.kt b/app/src/main/java/com/stevesoltys/seedvault/transport/backup/KVBackup.kt index 2468f75f..153b0989 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/transport/backup/KVBackup.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/transport/backup/KVBackup.kt @@ -67,7 +67,10 @@ internal class KVBackup( } // initialize state - if (this.state != null) throw AssertionError() + val state = this.state + if (state != null) { + throw AssertionError("Have state for ${state.packageInfo.packageName}") + } this.state = KVBackupState(packageInfo) // no need for backup when no data has changed