Development

Changeset 2791

You must first sign up to be able to contribute.

Changeset 2791

Show
Ignore:
Timestamp:
11/23/06 20:39:22 (2 years ago)
Author:
fabien
Message:

changed exceptions to error messages when you pass an invalid parameter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/cache/sfFileCache.class.php

    r2785 r2791  
    126126      if (!in_array($key, $availableOptions)) 
    127127      { 
    128         throw new sfConfigurationException(sprintf('sfFileCache cannot take "%s" as an option', $key)); 
     128        sfLogger::getInstance()->error(sprintf('sfFileCache cannot take "%s" as an option', $key)); 
    129129      } 
    130130 
  • trunk/lib/cache/sfSQLiteCache.class.php

    r2785 r2791  
    7070      if (!in_array($key, $availableOptions)) 
    7171      { 
    72         throw new sfConfigurationException(sprintf('sfFileCache cannot take "%s" as an option', $key)); 
     72        sfLogger::getInstance()->error(sprintf('sfSQLiteCache cannot take "%s" as an option', $key)); 
    7373      } 
    7474