Show More
@@ -7,7 +7,7 b'' | |||||
7 |
|
7 | |||
8 | import os, mimetypes |
|
8 | import os, mimetypes | |
9 | from mercurial import revlog, util |
|
9 | from mercurial import revlog, util | |
10 | from common import staticfile |
|
10 | from common import staticfile, ErrorResponse | |
11 |
|
11 | |||
12 | def log(web, req, tmpl): |
|
12 | def log(web, req, tmpl): | |
13 | if 'file' in req.form and req.form['file'][0]: |
|
13 | if 'file' in req.form and req.form['file'][0]: | |
@@ -100,8 +100,7 b' def archive(web, req, tmpl):' | |||||
100 | web.archive(tmpl, req, req.form['node'][0], type_) |
|
100 | web.archive(tmpl, req, req.form['node'][0], type_) | |
101 | return |
|
101 | return | |
102 |
|
102 | |||
103 | req.respond(400, tmpl('error', |
|
103 | raise ErrorResponse(400, 'Unsupported archive type: %s' % type_) | |
104 | error='Unsupported archive type: %s' % type_)) |
|
|||
105 |
|
104 | |||
106 | def static(web, req, tmpl): |
|
105 | def static(web, req, tmpl): | |
107 | fname = req.form['file'][0] |
|
106 | fname = req.form['file'][0] |
General Comments 0
You need to be logged in to leave comments.
Login now