Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19045

don't throw non-exceptions

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.1.5
    • Affects Version/s: None
    • Component/s: Internal Code
    • Fully Compatible
    • ALL
    • Platform 5 06/26/16

          if ( ! f->good() ) {                                                                                                                                                                                       
                  log() << "diagLogging couldn't open " << name << endl;                                                                                                                                                 
                  // todo what is this? :                                                                                                                                                                                
                  throw 1717;                                                                                                                                                                                            
              }                
      
                 stdx::lock_guard<stdx::mutex> lk( mongoProgramOutputMutex );                                                                                                                                           
                  if( mongo::dbexitCalled ) throw "program is terminating";                                                                                                                                              
                  stringstream buf;                                                                                                                                                                                      
                  if ( port > 0 )                                         
      

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: