IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20254


Ignore:
Timestamp:
Oct 17, 2008, 3:03:57 PM (18 years ago)
Author:
eugene
Message:

more clarity in error handline

Location:
trunk/psModules/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r19307 r20254  
    727727    bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    728728    psString tmpName = pmConfigConvertFilename (file->filename, config, create, false);
     729    if (!tmpName) {
     730        psError(PS_ERR_IO, false, "failed to determine real name from template for %s\n", file->filename);
     731        return false;
     732    }
    729733    psFree (file->filename);
    730734    file->filename = tmpName;
  • trunk/psModules/src/config/pmConfig.c

    r19111 r20254  
    15201520        if (!checkPath(newName, create, trunc)) {
    15211521            // let checkPath()'s psError() call float up
     1522            psError(PS_ERR_UNKNOWN, false, "error from checkPath for file:// (%s)", newName);
    15221523            psFree (newName);
    15231524            return NULL;
     
    15691570        if (!checkPath(newName, create, trunc)) {
    15701571            // let checkPath()'s psError() call float up
     1572            psError(PS_ERR_UNKNOWN, false, "error from checkPath for path:// (%s)", newName);
    15711573            psFree (newName);
    15721574            return NULL;
Note: See TracChangeset for help on using the changeset viewer.