Fix recursive errors caused by unwritable cache directories.

Fixes #2104
This commit is contained in:
mark_story 2011-10-16 18:51:02 -04:00
parent 7c5352a6c2
commit 1731b62644

View file

@ -289,7 +289,7 @@ class FileEngine extends CacheEngine {
try {
$this->_File = $path->openFile('c+');
} catch (Exception $e) {
trigger_error(__d('cake_dev', $e->getMessage()), E_USER_WARNING);
trigger_error($e->getMessage(), E_USER_WARNING);
return false;
}
unset($path);