From f907edcde5630eaa1d51920401b37647e9a145bd Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Tue, 3 Mar 2009 09:59:36 -0500 Subject: [PATCH] more stuff to see on failure --- lib/mongo/cursor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index 2a08349..13b60bb 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -207,7 +207,7 @@ module XGen begin buf.put_array(@db.socket.recv(size-4).unpack("C*"), 4) rescue => ex - raise "#{ex.class}: #{ex.message} ***size was #{size}***" + raise "#{ex.class}: #{ex.message} ***size was #{size}*res_flags #{@result_flags}*cursor_id #{@cursor_id}*starting_from #{@starting_from}*n_returned #{@n_returned}***" end @n_remaining -= 1 buf.rewind