[Jifty-commit] r7652 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Thu Nov 19 05:43:00 EST 2009
Author: clkao
Date: Thu Nov 19 05:42:58 2009
New Revision: 7652
Modified:
jifty/trunk/Makefile.PL
jifty/trunk/lib/Jifty/Dispatcher.pm
Log:
Use Carp::Clan to report api abuse so they are more informative.
Modified: jifty/trunk/Makefile.PL
==============================================================================
--- jifty/trunk/Makefile.PL (original)
+++ jifty/trunk/Makefile.PL Thu Nov 19 05:42:58 2009
@@ -5,6 +5,7 @@
requires('App::CLI' => 0.08 ); # App::CLI::Command::Help App::CLI::Command
requires('Cache::Cache'); #Cache::FileCache
requires('Calendar::Simple');
+requires('Carp::Clan');
requires('Class::Accessor'); # Class::Accessor::Fast
requires('Class::Container');
requires('Class::Data::Inheritable');
Modified: jifty/trunk/lib/Jifty/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Dispatcher.pm (original)
+++ jifty/trunk/lib/Jifty/Dispatcher.pm Thu Nov 19 05:42:58 2009
@@ -4,7 +4,7 @@
use Exporter;
use Jifty::YAML;
use base qw/Exporter Jifty::Object/;
-
+use Carp::Clan; # croak
=head1 NAME
@@ -790,7 +790,7 @@
$path = $self->{path} unless defined $path and length $path;
unless ($CURRENT_STAGE eq 'RUN') {
- die "You can't call a 'show' rule in a 'before' or 'after' block in the dispatcher. Not showing path $path";
+ croak "You can't call a 'show' rule in a 'before' or 'after' block in the dispatcher. Not showing path $path";
}
# If we've got a working directory (from an "under" rule) and we have
More information about the Jifty-commit
mailing list