put correct error messages in Document loop

This commit is contained in:
Manuel Raynaud
2014-01-21 10:11:29 +01:00
parent 91cf069313
commit d573ff54c2
3 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ abstract class BaseCachedFile extends BaseAction
// Create directory (recursively) if it does not exists.
if ($create_if_not_exists && !is_dir($path)) {
if (!@mkdir($path, 0777, true)) {
throw new \RuntimeException(sprintf("Failed to create %s/%s file in cache directory", $cache_base));
throw new \RuntimeException(sprintf("Failed to create %s file in cache directory", $path));
}
}