From baabe5ba528e4d449968187fd68b0f9d619be923 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 29 Oct 2022 14:40:41 +0530 Subject: refactor: add invalid `.gpg-id` file contents to errors --- .../main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt b/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt index fddc2943..1d20eae9 100644 --- a/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/crypto/PasswordCreationActivity.kt @@ -358,7 +358,7 @@ class PasswordCreationActivity : BasePgpActivity() { } .filterIsInstance() 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 = -- cgit v1.2.3