Changeset 19105


Ignore:
Timestamp:
07/31/18 14:12:19 (6 years ago)
Author:
tbretz
Message:
Some more cosmetics to the output.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fits2sql.cc

    r19104 r19105  
    445445    catch (const exception &e)
    446446    {
    447         cerr << "SQL connection failed: " << e.what() << endl;
     447        cerr << "SQL connection failed: " << e.what() << '\n' << endl;
    448448        return 4;
    449449    }
     
    480480    {
    481481        cerr << "DROP TABLE `" << table << "`\n\n";
    482         cerr << "SQL query failed:\n" << e.what() << endl;
     482        cerr << "SQL query failed:\n" << e.what() << '\n' << endl;
    483483        return 5;
    484484    }
     
    492492    {
    493493        cerr << query << "\n\n";
    494         cerr << "SQL query failed:\n" << e.what() << endl;
     494        cerr << "SQL query failed:\n" << e.what() << '\n' << endl;
    495495        return 6;
    496496    }
     
    606606        if (verbose>1 || query.length()<80*25)
    607607            cerr << query << "\n\n";
    608         cerr << "SQL query failed (" << query.length() << " bytes):\n" << e.what() << endl;
     608        cerr << "SQL query failed (" << query.length() << " bytes):\n" << e.what() << '\n' << endl;
    609609        return 7;
    610610    }
  • trunk/FACT++/src/root2sql.cc

    r19104 r19105  
    468468    catch (const exception &e)
    469469    {
    470         cerr << "SQL connection failed: " << e.what() << endl;
     470        cerr << "SQL connection failed: " << e.what() << '\n' << endl;
    471471        return 3;
    472472    }
     
    502502    {
    503503        cerr << "DROP TABLE `" << table << "`\n\n";
    504         cerr << "SQL query failed:\n" << e.what() << endl;
     504        cerr << "SQL query failed:\n" << e.what() << '\n' << endl;
    505505        return 4;
    506506    }
     
    514514    {
    515515        cerr << query << "\n\n";
    516         cerr << "SQL query failed:\n" << e.what() << endl;
     516        cerr << "SQL query failed:\n" << e.what() << '\n' << endl;
    517517        return 5;
    518518    }
     
    615615        if (verbose>1 || query.length()<80*25)
    616616            cerr << query << "\n\n";
    617         cerr << "SQL query failed (" << query.length() << " bytes):\n" << e.what() << endl;
     617        cerr << "SQL query failed (" << query.length() << " bytes):\n" << e.what() << '\n' << endl;
    618618        return 6;
    619619    }
Note: See TracChangeset for help on using the changeset viewer.