IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27137


Ignore:
Timestamp:
Mar 2, 2010, 11:34:39 AM (16 years ago)
Author:
Paul Price
Message:

Fixing error codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigDump.c

    r27057 r27137  
    5555
    5656    if (!configCull(config->recipes, keep)) {
    57         psError(PS_ERR_UNKNOWN, false, "Unable to cull system recipes.");
     57        psError(psErrorCodeLast(), false, "Unable to cull system recipes.");
    5858        psFree(keep);
    5959        return false;
     
    6464    psMetadata *cameras = psMetadataLookupMetadata(NULL, config->system, "CAMERAS"); // Known cameras
    6565    if (!cameras) {
    66         psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find CAMERAS in the system configuration.\n");
     66        psError(PM_ERR_CONFIG, false, "Unable to find CAMERAS in the system configuration.\n");
    6767        return false;
    6868    }
     
    8080        }
    8181        if (!configCull(recipes, keep)) {
    82             psError(PS_ERR_UNKNOWN, false, "Unable to cull recipes for camera %s", item->name);
     82            psError(psErrorCodeLast(), false, "Unable to cull recipes for camera %s", item->name);
    8383            psFree(iter);
    8484            psFree(keep);
     
    9898      psMetadata *cameras = psMetadataLookupMetadata(NULL, config->system, "CAMERAS"); // Known cameras
    9999      if (!cameras) {
    100           psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find CAMERAS in the system configuration.\n");
     100          psError(PM_ERR_CONFIG, false, "Unable to find CAMERAS in the system configuration.\n");
    101101          return NULL;
    102102      }
Note: See TracChangeset for help on using the changeset viewer.