IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2005, 3:41:30 PM (21 years ago)
Author:
jhoblitt
Message:

add psError() error reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/popfits.tt

    r4277 r4341  
    44
    55    if (!fooSelectRowsFits(dbh, fits, NULL, limit)) {
    6         // psError(); something bad happened
     6        psError(PS_ERR_UNKNOWN, true, "database error or table is empty");
    77        return false;
    88    }
     
    1212                "DELETE FROM %s ORDER BY %s DESC LIMIT %lld",
    1313                [% namespace FILTER upper %]_TABLE_NAME, [% namespace FILTER upper %]_INDEX_NAME, limit) < 0) {
    14         // psError(); something bad happened
     14        psError(PS_ERR_UNKNOWN, true, "query value attempted to exceed %s bytes", MAX_STRING_LENGTH);
    1515        return false;
    1616    }
    1717           
    1818    if (!p_psDBRunQuery(dbh, query)) {
    19         // psError(); something bad happened
     19        psError(PS_ERR_UNKNOWN, false, "database query failed");
    2020        return false;
    2121    }
Note: See TracChangeset for help on using the changeset viewer.