소스 검색

Merge pull request #4357 from alcohol/warn-about-lack-of-cache

Warn if cache directory cannot be created, refs #1161
Jordi Boggiano 10 년 전
부모
커밋
a698a56e16
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;
             }
         }