Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We are not croaking when the plugin fails.

$ perl -MMusic::Tag -E 'Music::Tag->new(shift) and say "why are we here?"' foo.mp7
Music::Tag::Auto Sorry, I can't find a plugin for /home/tim/foo.mp7 at /home/tim/perl5/perlbrew/perls/perl-5.12.4/lib/site_perl/5.12.4/Music/Tag.pm line 146
why are we here?
  • Loading branch information...
commit 0be6af6785706ff9a7fb70f6c67b590d941b1221 1 parent f85a39a
Tim Heaney authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Music/Tag.pm
2  lib/Music/Tag.pm
View
@@ -146,7 +146,7 @@ sub add_plugin {
$plugin = 'Music::Tag::' . $plugin;
}
if ( $self->_has_module($plugin) ) {
- $ref = $plugin->new( $self, $options );
+ $ref = $plugin->new( $self, $options ) or die;
}
return 1;
}
Please sign in to comment.
Something went wrong with that request. Please try again.