changeset 505:944bccb3f184

macro.CollectLists: better error message for no search result
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 23 Feb 2010 10:45:28 +0100
parents 31e92294799a
children b7a9843c5730
files data/plugin/macro/CollectLists.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/CollectLists.py	Sat Feb 20 13:15:01 2010 +0300
+++ b/data/plugin/macro/CollectLists.py	Tue Feb 23 10:45:28 2010 +0100
@@ -137,7 +137,7 @@
     pages = [title.page_name for title in search_result.hits]
 
     if not pages:
-        return _("Page '%(new_pagename)s' does not exist or you don't have enough rights.") % {"new_pagename": pagename}
+        return _("**Could not find the referenced page: %s**") % search_expression
 
     # ignore Template pages
     filterfn = request.cfg.cache.page_template_regexact.search