Explorar o código

Make sure warnings are output in case of symlink failure

Jordi Boggiano %!s(int64=8) %!d(string=hai) anos
pai
achega
8191efbaad
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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');
         }
     }