nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: example: add 24 game task of Rosetta code
[nit.git]
/
lib
/
mongodb
/
native_mongodb.nit
diff --git
a/lib/mongodb/native_mongodb.nit
b/lib/mongodb/native_mongodb.nit
index
3bcf3f8
..
0ee217d
100644
(file)
--- a/
lib/mongodb/native_mongodb.nit
+++ b/
lib/mongodb/native_mongodb.nit
@@
-53,7
+53,7
@@
extern class NativeBSON `{ bson_t * `}
bson_t *bson;
bson = bson_new_from_json(data, -1, &error);
if(!bson) {
- NativeBSON_set_mongoc_error(recv, &error);
+ NativeBSON_set_mongoc_error(bson, &error);
return NULL;
}
return bson;