[SERVER-17162] Give nice error if you run mongoimport/tool from javascript shell Created: 29/Jan/13  Updated: 06/Dec/22  Resolved: 19/Nov/21

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: move-stm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-38338 Add default "mongo" shell helper meth... Closed
Assigned Teams:
Server Tooling & Methods
Participants:

 Description   

If someone accidentally tries to run mongoimport/restore/etc from the mongo javascript shell they can get pretty confused why it isn't working. It could give a nice error message instead of this:

> mongoimport -d finance -c values --type csv --file hwoern/dev.hwoern.de/finance/comma.csv --headerline
Tue Jan 29 15:16:40 SyntaxError: missing ; before statement (shell):1



 Comments   
Comment by Brooke Miller [ 19/Nov/21 ]

We've deprecated the mongo shell in favor of the new mongosh . Unfortunately, we aren't able to pursue improvements to the deprecated shell except in extreme cases, such as critical security fixes. Can you please start making use of mongosh and let us know if it works for you in this case?

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