temporarily raise a different exception
This commit is contained in:
parent
f91c59ca7b
commit
0d64ec9de1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue