[SERVER-6704] edit operation no longer shows syntax errors Created: 03/Aug/12  Updated: 11/Jul/16  Resolved: 08/Aug/12

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: Windows
Participants:

 Description   

steps to repro:

e = []
edit e
delete the '[' (or make any other syntax error) and save
printjson(e)

Note that e is silently unmodified. Ideally this would present the error and prompt to re-edit, but at the very least it should show the error.



 Comments   
Comment by auto [ 08/Aug/12 ]

Author:

{u'date': u'2012-08-03T09:38:30-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-6704 show error message on failed "edit var" in shell

Display the JavaScript error and the line we tried to execute when we
fail to assign back to the variable in the mongo shell's edit command.
Branch: master
https://github.com/mongodb/mongo/commit/25e2b7e057b90a5501e78f22105c8658e4479e74

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