// Err returns the last error which occured for this cursor
Err returns the last error which occured for this cursor
// Err returns the last error which occured for this cursor
func (cursor *Cursor) Err() error {
	if cursor.cursor == nil {
		return nil
	}
	if cursor.lastError != nil {
		return wrapMongoError(cursor.lastError)
	}
	return wrapMongoError(cursor.cursor.Err())
}
func ( cursor * Cursor ) Err ( ) error { if cursor . cursor == nil { return nil } if cursor . lastError != nil { return wrapMongoError ( cursor . lastError ) } return wrapMongoError ( cursor . cursor . Err ( ) ) }
Err returns the last error which occured for this cursor
Err returns the last error which occured for this cursor