(let ((entry (assq 'delete-problem
(epg-context-result-for context 'error))))
(if entry
- (error "Delete keys failed: %s"
- (assq (cdr entry) epg-delete-problem-reason-alist)))))
+ (if (setq entry (assq (cdr (assq 'reason (cdr entry)))
+ epg-delete-problem-reason-alist))
+ (error "Delete keys failed: %s" (cdr entry)))
+ (error "Delete keys failed" (cdr entry)))))
(epg-reset context)))
;;;###autoload