use UNIVERSAL::moniker;
use strict;
use Maypole::Constants;
+use Carp;
sub new { bless {}, shift } # By default, do nothing.
sub error {
my ( $self, $r, $desc ) = @_;
$desc = $desc ? "$desc: " : "";
- warn $desc . $r->{error} ."\n";
+ carp $desc . $r->{error};
if ( $r->{error} =~ /not found$/ ) {
# This is a rough test to see whether or not we're a template or