must be a string for Exceptions
authorChuck Hagenbuch <chuck@horde.org>
Thu, 12 Mar 2009 17:32:52 +0000 (13:32 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 12 Mar 2009 17:32:52 +0000 (13:32 -0400)
framework/Vcs/lib/Horde/Vcs/Git.php

index 04d2d90..7338c72 100644 (file)
@@ -368,7 +368,7 @@ class Horde_Vcs_File_Git extends Horde_Vcs_File
         $cmd = $rep->getCommand() . ' rev-list --branches -- ' . escapeshellarg($this->queryModulePath()) . ' 2>&1';
         exec($cmd, $revs);
         if (stripos($revs[0], 'fatal') === 0) {
-            throw new Horde_Vcs_Exception($revs);
+            throw new Horde_Vcs_Exception(implode(', ', $revs));
         }
         $this->_revs = $revs;