commit 99ff924322141f7f464afb02a0c7d3b751ba62c6
parent ffca8c40eae3d2adbd8e5c50bc02a2017b26a929
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Mon, 22 Jul 2013 18:21:57 +0200
Debug output more details when a message cannot be loaded
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -264,6 +264,8 @@ class Message
rescue SourceError, SocketError, RMail::EncodingUnsupportedError => e
warn "problem reading message #{id}"
[Chunk::Text.new(error_message.split("\n"))]
+
+ debug "could not load message: #{location.inspect}, exception: #{e.inspect}"
end
end