Skip to content

Commit

Permalink
fixed Mojo::Loader example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 28, 2013
1 parent 399e68c commit 6dac40b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.21 2013-07-29

4.20 2013-07-28
- Deprecated Mojo::DOM::attrs in favor of Mojo::DOM::attr.
- Improved Mojo::UserAgent connection management to be fork-safe.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Loader.pm
Expand Up @@ -130,7 +130,7 @@ Load a class and catch exceptions. Note that classes are checked for a C<new>
method to see if they are already loaded.
if (my $e = $loader->load('Foo::Bar')) {
die ref $e ? "Exception: $e" : 'Already loaded!';
die ref $e ? "Exception: $e" : 'Not found!';
}
=head2 search
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -41,7 +41,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.20';
our $VERSION = '4.21';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit 6dac40b

Please sign in to comment.