[CDRIVER-314] typo in error message Created: 21/Mar/14  Updated: 03/May/17  Resolved: 27/Mar/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: TBD
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Gustaf Neumann Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The new mongoc_collection_stats() function has a typo in the error message in the code handling the options. really a minor thing, but it has the potential to slip through, so i am reporting it here...

diff --git a/src/mongoc/mongoc-collection.c b/src/mongoc/mongoc-collection.c
index 2af7efb..d12cb01 100644
— a/src/mongoc/mongoc-collection.c
+++ b/src/mongoc/mongoc-collection.c
@@ -1566,7 +1566,7 @@ mongoc_collection_stats (mongoc_collection_t *collection,
bson_set_error (error,
MONGOC_ERROR_BSON,
MONGOC_ERROR_BSON_INVALID,

  • "'sacle' must be an int32 value.");
    + "'scale' must be an int32 value.");
    return false;
    }


 Comments   
Comment by Christian Hergert [ 27/Mar/14 ]

Thanks, fixed in master!

Generated at Wed Feb 07 21:09:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.