Skip to content

Commit

Permalink
chore: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Nov 22, 2024
1 parent 5acc6d9 commit d30f5b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class ProteusClientCoreCryptoImpl private constructor(
if (cryptoBoxFilesExists(File(rootDir))) {
kaliumLogger.i("migrating from crypto box at: $rootDir")
coreCrypto.proteusCryptoboxMigrate(rootDir)
throw RuntimeException("Some dummy exception for this block")
throw RuntimeException("Some dummy exception for this block") // remove this, before merging, just for testing.
kaliumLogger.i("migration successful")

if (deleteCryptoBoxFiles(rootDir)) {
Expand All @@ -215,7 +215,7 @@ class ProteusClientCoreCryptoImpl private constructor(
}
}
} catch (exception: Exception) {
kaliumLogger.e("Failed to migrate from crypto box at $rootDir, exception: $exception")
kaliumLogger.e("Failed to migrate from crypto box to core crypto, exception: $exception")
throw ProteusStorageMigrationException("Failed to migrate from crypto box at $rootDir", exception)
}
}
Expand Down

0 comments on commit d30f5b8

Please sign in to comment.