[extensions-web] upload: Fix specialized URL error message
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] upload: Fix specialized URL error message
- Date: Mon, 12 Dec 2011 17:03:43 +0000 (UTC)
commit 90903691f2915a3c153acf4a2b3a564abcb1cb86
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 12 12:03:37 2011 -0500
upload: Fix specialized URL error message
sweettooth/extensions/views.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 797944c..e07d953 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -357,8 +357,9 @@ def upload_file(request, pk):
if getattr(e, 'message_dict', None) and 'url' in e.message_dict:
errors = [mark_safe("You have an invalid URL. Make sure your URL "
"starts with <pre>http://</pre>")]
+ else:
+ errors = e.messages
- errors = e.messages
extra_debug = repr(e)
else:
is_valid = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]