[SERVER-19938] Syntax errors do not provide character or line of error Created: 13/Aug/15  Updated: 07/Oct/15  Resolved: 23/Sep/15

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Improvement Priority: Major - P3
Reporter: John Pancoast Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platform A (10/09/15)
Participants:

 Description   

When an unexpected character is encountered, for example, I receive an error like this:

Thu Aug 13 18:35:18.777 SyntaxError: Unexpected token ILLEGAL

I'm currently dealing with a very large query that's almost 100 lines. It is very difficult to find this character because I do not even know what the character is.

The shell should provide useful information for the user like showing the failed character and where the character was encountered.



 Comments   
Comment by Githook User [ 23/Sep/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-19938 Add File:Line:Col to JS syntax errors
Branch: master
https://github.com/mongodb/mongo/commit/bbe44a11a9106bab69738205f576b5ee894f67db

Generated at Thu Feb 08 03:52:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.