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

PPI::Tokenizer all_tokens() error nest #224

Open
kryde opened this issue Dec 23, 2017 · 0 comments
Open

PPI::Tokenizer all_tokens() error nest #224

kryde opened this issue Dec 23, 2017 · 0 comments

Comments

@kryde
Copy link

kryde commented Dec 23, 2017

When PPI::Tokenizer method all_tokens() finds an error, it sets $@ to a PPI::Exception which has its $err->message as another PPI::Exception. Is that meant to be so? It has the unhappy effect of meaning $err->message after all_tokens() is not textual but say "PPI::Exception=HASH(0x814b9704)".

Sample program below illustrating $err->message->message to get the text of the error.

foo.pl.txt

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

No branches or pull requests

1 participant