From: Tomas Doran Date: Tue, 22 Nov 2011 21:30:42 +0000 (+0000) Subject: Make die string in controller much better X-Git-Tag: 0.003007~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=b35a7123319dab548fd05ff0460b6bcc7318e70e Make die string in controller much better --- diff --git a/lib/Gitalist/Controller/Fragment.pm b/lib/Gitalist/Controller/Fragment.pm index 5a4bfd2..3082b0c 100644 --- a/lib/Gitalist/Controller/Fragment.pm +++ b/lib/Gitalist/Controller/Fragment.pm @@ -13,7 +13,7 @@ sub base : Chained('/base') PathPart('fragment') CaptureArgs(0) { sub collectionofrepositories : Chained('base') Args(0) { my ($self, $c) = @_; my @list = @{ $c->model()->repositories }; - die 'No repositories found in '. $c->model->repo_dir + die 'No repositories found in '. ref($c->model) . ' ' . $c->model->debug_string unless @list; my $search = $c->req->param('s') || '';