Include the invalid revision in the exception
authorChuck Hagenbuch <chuck@horde.org>
Sun, 28 Nov 2010 01:22:57 +0000 (20:22 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 28 Nov 2010 02:08:02 +0000 (21:08 -0500)
framework/Vcs/lib/Horde/Vcs.php

index f01c559..22c4955 100644 (file)
@@ -194,7 +194,7 @@ class Horde_Vcs
     public function assertValidRevision($rev)
     {
         if (!$this->isValidRevision($rev)) {
-            throw new Horde_Vcs_Exception('Invalid revision number');
+            throw new Horde_Vcs_Exception('Invalid revision number "' . $rev . '"');
         }
     }