Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 February 04, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Music/Tag.pm
2  lib/Music/Tag.pm
@@ -146,7 +146,7 @@ sub add_plugin {
146 146
                         $plugin = 'Music::Tag::' . $plugin;
147 147
                     }
148 148
                     if ( $self->_has_module($plugin) ) {
149  
-                        $ref = $plugin->new( $self, $options );
  149
+                        $ref = $plugin->new( $self, $options ) or die;
150 150
                     }
151 151
                     return 1;
152 152
                 }

0 notes on commit 0be6af6

Please sign in to comment.
Something went wrong with that request. Please try again.