1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:32:28 +01:00

Applying a patch from Juergen Descher for better bmarks error messages

This commit is contained in:
Daniel Bainton
2008-08-05 13:41:57 +00:00
parent 134bd01b20
commit 3b708a2aad

View File

@@ -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");