Skip to content
Snippets Groups Projects
Commit 93d9c143 authored by Guillem Jover's avatar Guillem Jover
Browse files

Dpkg::OpenPGP::ErrorCodes: Add new OPENPGP_CMD_CANNOT_SIGN error code

Add a new error code to be used by gpg when it fails to sign.
parent 88bcf624
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ our @EXPORT = qw(
OPENPGP_MISSING_CMD
OPENPGP_NEEDS_KEYSTORE
OPENPGP_CMD_CANNOT_SIGN
openpgp_errorcode_to_string
);
......@@ -63,6 +64,7 @@ use constant {
OPENPGP_MISSING_CMD => -1,
OPENPGP_NEEDS_KEYSTORE => -2,
OPENPGP_CMD_CANNOT_SIGN => -3,
};
my %code2error = (
......@@ -80,6 +82,7 @@ my %code2error = (
OPENPGP_MISSING_CMD() => N_('missing OpenPGP implementation'),
OPENPGP_NEEDS_KEYSTORE() => N_('specified key needs a keystore'),
OPENPGP_CMD_CANNOT_SIGN() => N_('OpenPGP backend command cannot sign'),
);
sub openpgp_errorcode_to_string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment