[SERVER-137] catch UserException in tools Created: 09/Jul/09  Updated: 12/Jul/16  Resolved: 10/Jul/09

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 0.9.6
Fix Version/s: 0.9.7

Type: Bug Priority: Minor - P4
Reporter: Ask Bjørn Hansen Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X, 64-bit


Participants:

 Description   

./mongofiles put foo

connected to: 127.0.0.1
Thu Jul 9 02:56:23 User Exception file doesn't exist
terminate called after throwing an instance of 'mongo::UserException'
what(): file doesn't exist

backtrace:

0x00007fff81500f16 in __kill ()
(gdb) bt
#0 0x00007fff81500f16 in __kill ()
#1 0x00007fff81571f6d in abort ()
#2 0x00007fff8241a085 in _gnu_cxx::_verbose_terminate_handler ()
#3 0x00007fff82418425 in __gxx_personality_v0 ()
#4 0x00007fff8241845b in std::terminate ()
#5 0x00007fff8241854c in __cxa_throw ()
#6 0x000000010003d9c9 in mongo::uasserted ()
#7 0x0000000100129586 in mongo::GridFS::storeFile ()
#8 0x0000000100135ed2 in Files::run ()
#9 0x000000010012f29a in mongo::Tool::main ()
#10 0x0000000100134c7d in main ()


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