[extensions-web] upload: Add some extra debug information to the "Invalid Extension Data" error
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] upload: Add some extra debug information to the "Invalid Extension Data" error
- Date: Mon, 12 Dec 2011 16:50:07 +0000 (UTC)
commit 8de68ea406c4af106cac72b9bf25a6c62de4839f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 12 11:49:52 2011 -0500
upload: Add some extra debug information to the "Invalid Extension Data" error
sweettooth/extensions/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index d3d9324..6a45aa5 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -323,7 +323,7 @@ def upload_file(request, pk):
metadata = models.parse_zipfile_metadata(file_source)
uuid = metadata['uuid']
except (models.InvalidExtensionData, KeyError), e:
- messages.error(request, "Invalid extension data.")
+ messages.error(request, "Invalid extension data: %s" % (e.message,))
if pk is not None:
return redirect('extensions-upload-file', pk=pk)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]