From 358cb3f4fc2f7dc6ae2a1ac69c1a9f788bf35f74 Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Thu, 28 Jan 2016 01:06:05 +0100 Subject: [PATCH] Fixed exception text and some warnings. --- src/Composer/Util/Filesystem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Util/Filesystem.php b/src/Composer/Util/Filesystem.php index 2f8a7cf4c..e8334d0a2 100644 --- a/src/Composer/Util/Filesystem.php +++ b/src/Composer/Util/Filesystem.php @@ -594,10 +594,10 @@ class Filesystem $cmd = sprintf('mklink /J %s %s', ProcessExecutor::escape(str_replace('/', DIRECTORY_SEPARATOR, $targetDir)), ProcessExecutor::escape(realpath($originDir))); - if ($this->getProcess()->execute($cmd, $output) === 0) + if ($this->getProcess()->execute($cmd) === 0) return; } - throw new IOException(sprintf('Failed to create symbolic link from "%s" to "%s".', $originDir, $targetDir), 0, null, $targetDir); + throw new IOException(sprintf('Failed to create junction from "%s" to "%s".', $originDir, $targetDir), 0, null, $targetDir); } /** @@ -629,6 +629,6 @@ class Filesystem } $junction = rtrim(str_replace('/', DIRECTORY_SEPARATOR, $junction), DIRECTORY_SEPARATOR); $cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape($junction)); - return $this->getProcess()->execute($cmd, $output) === 0; + return $this->getProcess()->execute($cmd) === 0; } }