[SERVER-556] shell is too chatty with error output on this particular error case Created: 20/Jan/10  Updated: 28/Jun/12  Resolved: 27/Jan/10

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

Type: Improvement Priority: Trivial - P5
Reporter: Dwight Merriman Assignee: Mathias Stearn
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

unnecessary stack trace display

[dwight@dmt61 p]$ ./mongo --shell 192.168.58.1/test asdf*.js
MongoDB shell version: 1.3.1-
url: 192.168.58.1/test
Wed Jan 20 10:12:51 *** warning: spider monkey build without utf8 support. consider rebuilding with utf8 support
connecting to: 192.168.58.1/test
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::path: invalid name "asdf*.js" in path: "asdf*.js"
Wed Jan 20 10:12:51 mongo got signal 6 (Aborted), stack trace:
Wed Jan 20 10:12:51 0x8077099 0x110420 0x110402 0x2d0fa0 0x2d28b1 0x678c540 0x678a025 0x678a062 0x678a19a 0x127982 0x128800 0x80c30a7 0x80797a0 0x807bc35 0x2bdf70 0x80764f1
./mongo(_Z12quitAbruptlyi+0x399) [0x8077099]
[0x110420]
[0x110402]
/lib/libc.so.6(gsignal+0x50) [0x2d0fa0]
/lib/libc.so.6(abort+0x101) [0x2d28b1]
/usr/lib/libstdc++.so.6(ZN9gnu_cxx27_verbose_terminate_handlerEv+0x150) [0x678c540]
/usr/lib/libstdc++.so.6 [0x678a025]
/usr/lib/libstdc++.so.6 [0x678a062]
/usr/lib/libstdc++.so.6 [0x678a19a]
/usr/lib/libboost_filesystem.so.2(_ZN5boost10filesystem4path13m_path_appendERKSsPFbS3_E+0x572) [0x127982]
/usr/lib/libboost_filesystem.so.2(_ZN5boost10filesystem4pathC1ERKSs+0x40) [0x128800]
./mongo(_ZN5mongo5Scope8execFileERKSsbbbi+0x47) [0x80c30a7]
./mongo(_Z5_mainiPPc+0x1880) [0x80797a0]
./mongo(main+0x35) [0x807bc35]
/lib/libc.so.6(__libc_start_main+0xe0) [0x2bdf70]
./mongo [0x80764f1]



 Comments   
Comment by Dwight Merriman [ 28/Jan/10 ]

works for me now with latest code - must have been fixed at some point

Comment by Mathias Stearn [ 27/Jan/10 ]

MongoDB shell version: 1.3.2-
url: test
connecting to: test
file [asdf*.js] doesn't exist
failed to load: asdf*.js

Same result with 1.2.0

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