From 61dc752c78f672f514e00f9511cee79abf96e6c4 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Fri, 14 Aug 2015 13:13:10 +0200 Subject: [PATCH] Warn if cache directory cannot be created closes #1161 --- src/Composer/Cache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Cache.php b/src/Composer/Cache.php index 746a31aec..22e744fd2 100644 --- a/src/Composer/Cache.php +++ b/src/Composer/Cache.php @@ -45,6 +45,7 @@ class Cache if (!is_dir($this->root)) { if (!@mkdir($this->root, 0777, true)) { + $this->io->writeError('Cannot create cache directory ' . $this->root . ', proceeding without cache'); $this->enabled = false; } }