Fork me on GitHub

Changeset 480 in svn for trunk/src/STDHEPConverter.cc


Ignore:
Timestamp:
Jul 14, 2009, 12:53:49 PM (15 years ago)
Author:
Xavier Rouby
Message:

minor change: cleaning of the 'cout' and 'cerr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STDHEPConverter.cc

    r466 r480  
    129129  if(!infile.is_open())
    130130    {
    131       cerr << left  << setw(30) <<"**   ERROR: Can't open  "<<""
    132                     << left  << setw(20) << inputFileList                    <<""
    133                     << right << setw(19) <<"for input **"<<""<<endl;
     131      string text = inputFileList + " for input ";
     132      cerr << left  << setw(26) <<"**   ERROR: Can't open  "<<""
     133                    << left  << setw(40) << text                    <<""
     134                    << right << setw(3) <<" **"<<""<<endl;
    134135      exit(1);
    135136    }
     
    144145      ifstream checking_the_file(filename.c_str());
    145146      if(!checking_the_file.good()) {
    146              cerr << left  << setw(30) <<"**   ERROR: Can't find file "<<""
    147                   << left  << setw(20) << filename                      <<""
    148                   << right << setw(19) <<"for input **"<<""<<endl;
     147             cerr << left  << setw(28) <<"**   ERROR: Can't find file "<<""
     148                  << left  << setw(38) << filename                      <<""
     149                  << right << setw(3) <<" **"<<""<<endl;
    149150             continue;
    150151       } else checking_the_file.close();
Note: See TracChangeset for help on using the changeset viewer.