From c880ffccbe781a96a216b747e7802fb12bbdb84b Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 15 Jan 2011 10:38:18 -0500 Subject: [PATCH] Throw an Ansel_Exception here so that it's caught as expected --- ansel/lib/View/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansel/lib/View/Base.php b/ansel/lib/View/Base.php index 5625264c7..734b3d86f 100644 --- a/ansel/lib/View/Base.php +++ b/ansel/lib/View/Base.php @@ -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. -- 2.11.0