aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-21 00:56:24 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-21 00:56:24 +0100
commit07707a00b935f896e81a74299b418d57db1419e1 (patch)
treeaff5a565579aa87aa936504be123b3272ebb4123
parentb710197681de37701e54a001fed69203f1e16c9e (diff)
Improve wording on error
-rw-r--r--app/models/incoming_message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index fcbea4990..9d0d5bea3 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -402,7 +402,7 @@ class FOIAttachment
body_without_tags = body.gsub(/\s+/,"").gsub(/\<[^\>]*\>/, "")
contains_images = html.match(/<img/mi) ? true : false
if !$?.success? || html.size == 0 || (body_without_tags.size == 0 && !contains_images)
- return "<html><head></head><body><p>Sorry, the conversion to HTML failed. Please use the download link at the top right.</p></body></html>", wrapper_id
+ return "<html><head></head><body><p>Sorry, we were unable to convert this file to HTML. Please use the download link at the top right.</p></body></html>", wrapper_id
end
return html, wrapper_id