IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2007, 11:56:02 AM (19 years ago)
Author:
magnier
Message:

only warn on problem with a recipe file

File:
1 edited

Legend:

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

    r10965 r11097  
    311311        }
    312312
    313         #if (0)
    314         psString comment = NULL;
    315         psStringAppend(&comment, "Recipe added at %s from %s", sourceName, (char*)fileItem->data.V);
    316         psTrace ("psModules.config", 3, comment);
    317         psMetadataAddS32(config->recipesSource, PS_LIST_TAIL, fileItem->name, PS_META_REPLACE,
    318                          comment, sourceType);
    319         psFree(comment);
    320         #endif
    321 
    322         // Read the recipe file.
     313        // Read the recipe file. if we fail on a file, give a warning, but continue
    323314        psMetadata *recipe = NULL;
    324315        if (!pmConfigFileRead(&recipe, fileItem->data.V, "recipe")) {
    325             psError(PS_ERR_IO, false, "Failed to read recipe");
    326             psFree(recipe);  // Drop reference
    327             psFree(recipesIter);
    328             return false;
     316            psWarning("Failed to read recipe file %s listed in %s\n", (char *)fileItem->data.V, sourceName);
     317            continue;
    329318        }
    330319
Note: See TracChangeset for help on using the changeset viewer.