[infrae.fileupload][Sylvain Viollon] Fix error.

[email protected]
Newsgroups gmane.comp.web.zope.silva.cvs
Message-ID <[email protected]>
author:    Sylvain Viollon
date:      Mon Aug 19 18:30:59 2013 +0200
revision:  19:8970749858f0 in infrae.fileupload
branch:    
details:   https://hg.infrae.com/infrae.fileupload?cmd=changeset;node=8970749858f0
modified:  src/infrae/fileupload/middleware.py
added:     
removed:   
log:       Fix error.


diffstat:

 src/infrae/fileupload/middleware.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 832a50886fc5 -r 8970749858f0 src/infrae/fileupload/middleware.py
--- a/src/infrae/fileupload/middleware.py	Mon Aug 19 18:29:29 2013 +0200
+++ b/src/infrae/fileupload/middleware.py	Mon Aug 19 18:30:59 2013 +0200
@@ -408,7 +408,7 @@
             if upload is None:
                 upload = self.manager.create_upload_bucket(
                     identifier, '', 'n/a', '0')
-            upload.metadata(error=error)
+            upload.metadata(error=error.msg)
             if output_stream is not None:
                 output_stream.close()
             if track_progress is not None:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.