temporarily raise a different exception

This commit is contained in:
Mike Dirolf 2009-03-03 09:27:38 -05:00
parent f91c59ca7b
commit 0d64ec9de1
1 changed files with 6 additions and 1 deletions

View File

@ -203,7 +203,12 @@ module XGen
buf.put_array(@db.socket.recv(4).unpack("C*"))
buf.rewind
size = buf.get_int
# TODO debugging here for a bit
begin
buf.put_array(@db.socket.recv(size-4).unpack("C*"), 4)
rescue => ex
raise "#{ex.class}: #{ex.message} ***size was #{size}***"
end
@n_remaining -= 1
buf.rewind
BSON.new(@db).deserialize(buf)