IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2007, 5:18:21 PM (19 years ago)
Author:
magnier
Message:

correctly handle invalid camera format vs config error

File:
1 edited

Legend:

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

    r10966 r11242  
    8989                }
    9090            } else {
    91                 pmConfigValidateCameraFormat (file->format, phu);
     91                bool valid;
     92                if (!pmConfigValidateCameraFormat (&valid, file->format, phu)) {
     93                    psError (PS_ERR_UNKNOWN, false, "Error in config scripts\n");
     94                    psFree (phu);
     95                    return NULL;
     96                }
     97                if (!valid) {
     98                    psError(PS_ERR_IO, false, "file %s is not from the required camera", file->filename);
     99                    psFree (phu);
     100                    return NULL;
     101                }
    92102            }
    93103            pmFPAview *thisView = pmFPAAddSourceFromHeader (file->fpa, phu, file->format);
Note: See TracChangeset for help on using the changeset viewer.