aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-29 14:51:24 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-29 14:51:24 +0100
commit26c71029b44d4384020b2f928fb18f59b1d1356b (patch)
tree65b060e8444923857a15dd66885b7e0844fb2a2c
parent60de3209b923db71fc126bca4c34e0bf34752726 (diff)
downloadmediagoblin-26c71029b44d4384020b2f928fb18f59b1d1356b.tar.lz
mediagoblin-26c71029b44d4384020b2f928fb18f59b1d1356b.tar.xz
mediagoblin-26c71029b44d4384020b2f928fb18f59b1d1356b.zip
Fix error page text
Thanks to Elrond for noticing. We wrap error messages in <p> tags, so there is no need to start the error message with <p>. DOH Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
-rw-r--r--mediagoblin/tools/response.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tools/response.py b/mediagoblin/tools/response.py
index a77f68b9..6d14b8b7 100644
--- a/mediagoblin/tools/response.py
+++ b/mediagoblin/tools/response.py
@@ -32,7 +32,7 @@ def render_error(request, status=500, title=_('Oops!'),
Title and description are passed through as-is to allow html. Make
sure no user input is contained therein for security reasons. The
- description will be wrapped in a <p> tag.
+ description will be wrapped in <p></p> tags.
"""
return Response(render_template(request, 'mediagoblin/error.html',
{'err_code': status, 'title': title, 'err_msg': err_msg}),
@@ -49,7 +49,7 @@ def render_403(request):
def render_404(request):
"""Render a standard 404 page."""
- err_msg = _("<p>There doesn't seem to be a page at this address. Sorry!</p>"
+ err_msg = _("There doesn't seem to be a page at this address. Sorry!</p>"
"<p>If you're sure the address is correct, maybe the page "
"you're looking for has been moved or deleted.")
return render_error(request, 404, err_msg=err_msg)