From d65e2594db25ab476aa0860564afe899eb61e6e3 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 17 Oct 2010 20:55:17 -0400 Subject: [PATCH] Slightly better error message when a repository slug isn't found. Still need to catch all of these exceptions and wrap them in a nice error page. --- chora/lib/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chora/lib/Application.php b/chora/lib/Application.php index 1e7db1eb4..e3d7d28bd 100644 --- a/chora/lib/Application.php +++ b/chora/lib/Application.php @@ -108,7 +108,7 @@ class Chora_Application extends Horde_Registry_Application } if (!isset($sourceroots[$acts['rt']])) { - throw new Chora_Exception(_("Malformed URL")); + throw new Chora_Exception(sprintf(_("The repository with the slug '%s' was not found"), $acts['rt'])); } $sourcerootopts = $sourceroots[$acts['rt']]; -- 2.11.0