mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 22:25:46 +01:00
Applying a patch from Juergen Descher for better bmarks error messages
This commit is contained in:
@@ -413,8 +413,12 @@ liberator.Bookmarks = function () //{{{
|
|||||||
var items = this.get(filter, tags, false);
|
var items = this.get(filter, tags, false);
|
||||||
if (items.length == 0)
|
if (items.length == 0)
|
||||||
{
|
{
|
||||||
if (filter.length > 0 || tags.length > 0)
|
if (filter.length > 0 && tags.length > 0)
|
||||||
liberator.echoerr("E283: No bookmarks matching \"" + filter + "\"");
|
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
|
else
|
||||||
liberator.echoerr("No bookmarks set");
|
liberator.echoerr("No bookmarks set");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user