Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We are not croaking when the plugin fails. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oylenshpeegul
Copy link

I think the croaks that follow do the right thing, but they're not getting the information they need.

$ 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?

$ 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?
@oylenshpeegul
Copy link
Author

I made that change to a different Perl...

$ perlbrew switch perl-5.14.2
$ 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.14.2/lib/site_perl/5.14.2/Music/Tag.pm line 165
Error loading plugin Music::Tag::Auto: Died at /home/tim/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Music/Tag.pm line 165.
at -e line 1

The empty die caused the croak to be reached (no "why are we here?" line).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant