dr-co / libmojolicious-plugin-mail_exception

Exception to Mail plugin for Mojolicious
1 stars 7 forks source link

respect newline error messages #14

Open bearpreis opened 3 years ago

bearpreis commented 3 years ago

Problem:

String-exceptions (with newlines) getting manipulated which leads to problems when checking them or passing them through.

Our fix:

If the exception does not contain line and package name, do not upgrade it to a Mojo::Exception and do not append line and package name, thus respecting string exceptions ending with a newline.

bearpreis commented 3 years ago

This is somehow correlated to the pull request #12 ( https://github.com/dr-co/libmojolicious-plugin-mail_exception/pull/12 ) but handled slightly different.