Skip to content

Commit

Permalink
Merge pull request #22 from SportlabsTechnology/master
Browse files Browse the repository at this point in the history
Fix insert(documents:) error detection
  • Loading branch information
kjessup committed Jul 7, 2018
2 parents 9ec2e94 + c0ce38c commit 7e4d56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PerfectMongoDB/MongoCollection.swift
Expand Up @@ -314,7 +314,7 @@ public class MongoCollection {
// bson_destroy (doc)
}

guard mongoc_bulk_operation_execute(bulk, &reply, &error) == 1 else {
guard mongoc_bulk_operation_execute(bulk, &reply, &error) != 0 else {
return Result.fromError(error)
}

Expand Down

0 comments on commit 7e4d56e

Please sign in to comment.