-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
In https://mongoc.org/libmongoc/current/mongoc_database_find_collections_with_opts.html
if (mongoc_cursor_error (cursor, &error)) fprintf (stderr, "%s\n", error.msg); }
Produces
main.c:139:37: error: 'bson_error_t' {aka 'struct _bson_error_t'} has no member named 'msg' 139 | fprintf (stderr, "%s\n", error.msg); | ^
Looking at definition in source, the field is called message:
typedef struct _bson_error_t {
uint32_t domain;
uint32_t code;
char message[BSON_ERROR_BUFFER_SIZE];
} bson_error_t BSON_ALIGNED_END (8);
- is duplicated by
-
CDRIVER-4477 Find collections example does not declare cursor
- Closed