lib/sup/mbox/loader.rb in sup-0.0.3 vs lib/sup/mbox/loader.rb in sup-0.0.4
- old
+ new
@@ -35,9 +35,10 @@
header = nil
@mutex.synchronize do
@f.seek offset
l = @f.gets
unless l =~ BREAK_RE
+ Redwood::log "#{to_s}: offset mismatch in mbox file offset #{offset.inspect}: #{l.inspect}"
self.broken_msg = "offset mismatch in mbox file offset #{offset.inspect}: #{l.inspect}. Run 'sup-import --rebuild #{to_s}' to correct this."
raise SourceError, self.broken_msg
end
header = MBox::read_header @f
end