summaryrefslogtreecommitdiff
path: root/yarns/0060-encryption.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-13 19:04:04 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-13 19:04:04 +0000
commitacddf011115d7537bd4d7cae91977c0c897ac047 (patch)
tree8d4a958b7476af1c68e1da4a875fa0673d022196 /yarns/0060-encryption.yarn
parent24ab8f5d695a160b8e84f126c3595f71820e5abe (diff)
downloadobnam-acddf011115d7537bd4d7cae91977c0c897ac047.tar.gz
Improve error message when secret key missing
The actual gpg error message is now shown, instead of hidden behind a "unknown tag found" message.
Diffstat (limited to 'yarns/0060-encryption.yarn')
-rw-r--r--yarns/0060-encryption.yarn3
1 files changed, 2 insertions, 1 deletions
diff --git a/yarns/0060-encryption.yarn b/yarns/0060-encryption.yarn
index 384d7a70..b30234be 100644
--- a/yarns/0060-encryption.yarn
+++ b/yarns/0060-encryption.yarn
@@ -99,7 +99,8 @@ client, should not be able to access the data.
GIVEN a user U3 calling themselves U1
WHEN user U3 attempts to restore their latest generation in repository R into X3
THEN the attempt failed with exit code 1
- AND the error message matches "R169C6X: Unknown filter tag\|R173AEX: No filter tag found"
+ AND the error message matches "R0C79EX: gpg failed"
+ AND the error message matches "secret key not available"
(The error message above indicates that there's a bug in Obnam, which
is that the error message, when an encryption is not provided but the