Ignore:
Timestamp:
02/25/06 18:31:03 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r7460 r7528  
    5252// file called sql.rc and the resource file is found.
    5353//
    54 // Returns 0 in case of failure and 1 in case of success.
     54// Returns 2 in case of failure, 1 in case of success and 0 if the connection
     55// to the database is not working.
    5556//
    5657/////////////////////////////////////////////////////////////////////////////
     
    113114    {
    114115        cout << "ERROR - Could not find file " << fname << endl;
    115         return 0;
     116        return 2;
    116117    }
    117118
     
    121122    {
    122123        cout << "ERROR - Reading of MStatusDisplay failed." << endl;
    123         return 0;
     124        return 2;
    124125    }
    125126
     
    128129    {
    129130        cout << "WARNING - Reading of MHHillas failed." << endl;
    130         return 0;
     131        return 2;
    131132    }
    132133
     
    135136    {
    136137        cout << "WARNING - Reading of MHMuon failed." << endl;
    137         return 0;
     138        return 2;
    138139    }
    139140
     
    165166    {
    166167        cout << "WARNING - Reading of Islands failed." << endl;
    167         return 0;
     168        return 2;
    168169    }
    169170
     
    176177    {
    177178        cout << "WARNING - Reading of EffOnTheta failed." << endl;
    178         return 0;
     179        return 2;
    179180    }
    180181
     
    189190    {
    190191        cout << "WARNING - Reading of ProjDeltaT failed." << endl;
    191         return 0;
     192        return 2;
    192193    }
    193194
     
    199200    {
    200201        cout << "WARNING - Reading of Humidity failed." << endl;
    201         return 0;
     202        return 2;
    202203    }
    203204
     
    210211    {
    211212        cout << "WARNING - Could get sequence# from filename: " << fname << endl;
    212         return 0;
     213        return 2;
    213214    }
    214215
     
    268269
    269270    if (dummy)
    270         return 0;
     271        return 1;
    271272
    272273    TSQLResult *res = serv.Query(query);
     
    274275    {
    275276        cout << "ERROR - Query failed: " << query << endl;
    276         return 0;
     277        return 2;
    277278    }
    278279
Note: See TracChangeset for help on using the changeset viewer.