branch: elpa/elfeed
commit 2d00b4bf0a4476791a6efa3e98ddcadb0c6af987
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
elfeed-link-open: Throw error if entry has not been found (Fix #252)
---
elfeed-link.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/elfeed-link.el b/elfeed-link.el
index de6b39d2e3..394ff3bd37 100644
--- a/elfeed-link.el
+++ b/elfeed-link.el
@@ -111,9 +111,11 @@ Org-mode HTML quote."
Depending on what FILTER-OR-ID looks like, we jump to either
search buffer or show a concrete entry."
(if (string-match "\\([^#]+\\)#\\(.+\\)" filter-or-id)
- (elfeed-show-entry (elfeed-db-get-entry
- (cons (match-string 1 filter-or-id)
- (match-string 2 filter-or-id))))
+ (elfeed-show-entry
+ (or (elfeed-db-get-entry
+ (cons (match-string 1 filter-or-id)
+ (match-string 2 filter-or-id)))
+ (error "Entry not found")))
(elfeed)
(elfeed-search-set-filter filter-or-id)))