瀏覽代碼

Make sure warnings are output in case of symlink failure

Jordi Boggiano 8 年之前
父節點
當前提交
8191efbaad
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Packagist/WebBundle/Package/SymlinkDumper.php

+ 2 - 0
src/Packagist/WebBundle/Package/SymlinkDumper.php

@@ -444,9 +444,11 @@ class SymlinkDumper
             unlink($newLink);
         }
         if (!symlink($buildDir, $newLink)) {
+            echo 'Warning: Could not symlink the build dir into the web dir';
             throw new \RuntimeException('Could not symlink the build dir into the web dir');
         }
         if (!rename($newLink, $oldLink)) {
+            echo 'Warning: Could not replace the old symlink with the new one in the web dir';
             throw new \RuntimeException('Could not replace the old symlink with the new one in the web dir');
         }
     }