[SERVER-23146] Enhance geoparser error messages Created: 15/Mar/16  Updated: 23/Jun/22  Resolved: 23/Jun/22

Status: Closed
Project: Core Server
Component/s: Geo, Querying
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie Assignee: Emily Wang (Inactive)
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently, most of the parsing errors in geoparser.cpp assume the user already knows what the problem is. For example:
"GeoJSON coordinates must be an array of coordinates" (without saying what the actual erroneous type is)
"Point must only contain numeric elements" (without saying what the actual type of the provided element was)
"Coordinates of polygon must be an array" (etc)
"MultiPolygon coordinates must be an array"

In order to make problem diagnosis easier, we should provide as much context as possible in these error strings.



 Comments   
Comment by Githook User [ 23/Jun/22 ]

Author:

{'name': 'Emily Wang', 'email': 'emily.wang@mongodb.com', 'username': 'emwangs'}

Message: SERVER-23146 More verbose error messages for geoparser
Branch: davish/SERVER-63099
https://github.com/mongodb/mongo/commit/ccfb3a019e514e5a02f68a6f3e3fb4579cd14f46

Comment by Githook User [ 22/Jun/22 ]

Author:

{'name': 'Emily Wang', 'email': 'emily.wang@mongodb.com', 'username': 'emwangs'}

Message: SERVER-23146 More verbose error messages for geoparser
Branch: master
https://github.com/mongodb/mongo/commit/ccfb3a019e514e5a02f68a6f3e3fb4579cd14f46

Generated at Thu Feb 08 04:02:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.