Throw an Ansel_Exception here so that it's caught as expected
authorChuck Hagenbuch <chuck@horde.org>
Sat, 15 Jan 2011 15:38:18 +0000 (10:38 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 15 Jan 2011 15:38:18 +0000 (10:38 -0500)
ansel/lib/View/Base.php

index 5625264..734b3d8 100644 (file)
@@ -135,7 +135,7 @@ abstract class Ansel_View_Base
         }
 
         if (empty($galleryId) && empty($slug)) {
-            throw new InvalidArgumentException(_("No gallery specified"));
+            throw new Ansel_Exception(_("No gallery specified"));
         }
 
         // If we have a slug, use it.