Browse Source

Capture output, stopping errors showing up if p4 is not available

Chris Smith 11 years ago
parent
commit
c0316aa957
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Composer/Util/Perforce.php

+ 3 - 1
src/Composer/Util/Perforce.php

@@ -372,7 +372,9 @@ class Perforce
 
     public static function checkServerExists($url, ProcessExecutor $processExecutor)
     {
-        return 0 === $processExecutor->execute('p4 -p ' . $url . ' info -s');
+        $output = null;
+
+        return 0 === $processExecutor->execute('p4 -p ' . $url . ' info -s', $output);
     }
 
     public function getComposerInformation($identifier)