From 17a836d49c8d496d50b726132e58749cf2741dd6 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 5 Aug 2011 16:47:12 +0200 Subject: [PATCH] Better wording --- flask/debughelpers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flask/debughelpers.py b/flask/debughelpers.py index dd1fffe9..9ba81e5e 100644 --- a/flask/debughelpers.py +++ b/flask/debughelpers.py @@ -20,13 +20,13 @@ class DebugFilesKeyError(KeyError, AssertionError): buf = ['You tried to access the file "%s" in the request.files ' 'dictionary but it does not exist. The mimetype for the request ' 'is "%s" instead of "multipart/form-data" which means that no ' - 'files were transmitted. To fix this error you most likely have ' - 'to provide enctype="multipart/form-data" in your form.' % + 'file contents were transmitted. To fix this error you should ' + 'provide enctype="multipart/form-data" in your form.' % (key, request.mimetype)] if form_matches: - buf.append('\n\nThe browser instead most likely submitted the ' - 'filenames in the form. This was submitted: %s' % - ', '.join('"%s"' % x for x in form_matches)) + buf.append('\n\nThe browser instead some file names. This was ' + 'submitted: %s' % ', '.join('"%s"' % x + for x in form_matches)) self.msg = ''.join(buf) def __str__(self):