Skip to content

We are not croaking when the plugin fails.#2

Open
oylenshpeegul wants to merge 1 commit intoriemann42:masterfrom
oylenshpeegul:patch-1
Open

We are not croaking when the plugin fails.#2
oylenshpeegul wants to merge 1 commit intoriemann42:masterfrom
oylenshpeegul:patch-1

Conversation

@oylenshpeegul
Copy link
Copy Markdown

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
Copy Markdown
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.

1 participant