Raise an error if cursor returns $err.

This commit is contained in:
Jim Menard 2008-12-09 14:47:34 -05:00
parent 6c481c617d
commit f961339cf5
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ module XGen
def next_object
refill_via_get_more if num_remaining == 0
@objects.shift
o = @objects.shift
raise o['$err'] if o['$err']
o
end
def each