浏览代码

Warn if cache directory cannot be created

closes #1161
Rob Bast 10 年之前
父节点
当前提交
61dc752c78
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Composer/Cache.php

+ 1 - 0
src/Composer/Cache.php

@@ -45,6 +45,7 @@ class Cache
 
         if (!is_dir($this->root)) {
             if (!@mkdir($this->root, 0777, true)) {
+                $this->io->writeError('<warning>Cannot create cache directory ' . $this->root . ', proceeding without cache</warning>');
                 $this->enabled = false;
             }
         }