From 3b708a2aadaa2a2c930e743215f9fbbf3bb568b3 Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Tue, 5 Aug 2008 13:41:57 +0000 Subject: [PATCH] Applying a patch from Juergen Descher for better bmarks error messages --- content/bookmarks.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/bookmarks.js b/content/bookmarks.js index b74f17f7..cabe0185 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -413,8 +413,12 @@ liberator.Bookmarks = function () //{{{ var items = this.get(filter, tags, false); if (items.length == 0) { - if (filter.length > 0 || tags.length > 0) - liberator.echoerr("E283: No bookmarks matching \"" + filter + "\""); + if (filter.length > 0 && tags.length > 0) + liberator.echoerr("E283: No bookmarks matching tags: \"" + tags + "\" and string: \"" + filter + "\""); + else if (filter.length > 0) + liberator.echoerr("E283: No bookmarks matching string: \"" + filter + "\""); + else if (tags.length > 0) + liberator.echoerr("E283: No bookmarks matching tags: \"" + tags + "\""); else liberator.echoerr("No bookmarks set");