refactor: add invalid .gpg-id file contents to errors

This commit is contained in:
Harsh Shandilya 2022-10-29 14:40:41 +05:30
parent 99bfccf945
commit baabe5ba52
No known key found for this signature in database

View file

@ -358,7 +358,7 @@ class PasswordCreationActivity : BasePgpActivity() {
}
.filterIsInstance<GpgIdentifier>()
if (gpgIdentifiers.isEmpty()) {
error("Failed to parse identifiers from .gpg-id")
error("Failed to parse identifiers from .gpg-id: ${gpgIdentifierFile.readText()}")
}
val content = "$editPass\n$editExtra"
val path =