Skip to content

Commit

Permalink
improved router log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 13, 2012
1 parent 16cd327 commit 256b11c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.81 2012-04-13
2.81 2012-04-14
- Improved all debug messages.
- Improved documentation.
- Improved tests.
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -195,15 +195,16 @@ sub _load_class {
if (my $e = Mojo::Loader->load($app)) {

# Doesn't exist
$c->app->log->debug("$app does not exist, maybe a typo?") and return
$c->app->log->debug(qq/"$app" does not exist, maybe a typo?/) and return
unless ref $e;

# Error
die $e;
}

# Check base classes
return unless first { $app->isa($_) } @{$self->base_classes};
$c->app->log->debug(qq/"$app" is not a controller./) and return
unless first { $app->isa($_) } @{$self->base_classes};
return ++$self->{loaded}->{$app};
}

Expand Down

0 comments on commit 256b11c

Please sign in to comment.