Преглед изворни кода

Fix ZF-12214: Zend_Cache_Backend_File - improve error messages for cache_dir. Patch by Martin Hujer.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24844 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob пре 13 година
родитељ
комит
915f658566
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      library/Zend/Cache/Backend/File.php

+ 2 - 2
library/Zend/Cache/Backend/File.php

@@ -175,10 +175,10 @@ class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_B
     public function setCacheDir($value, $trailingSeparator = true)
     {
         if (!is_dir($value)) {
-            Zend_Cache::throwException('cache_dir must be a directory');
+            Zend_Cache::throwException(sprintf('cache_dir "%s" must be a directory', $value));
         }
         if (!is_writable($value)) {
-            Zend_Cache::throwException('cache_dir is not writable');
+            Zend_Cache::throwException(sprintf('cache_dir "%s" is not writable', $value));
         }
         if ($trailingSeparator) {
             // add a trailing DIRECTORY_SEPARATOR if necessary