khrt / Raisin

Raisin - a REST API micro framework for Perl 🐫 🐪
61 stars 30 forks source link

Correct longmess call bug #60

Closed adamgsg closed 5 years ago

adamgsg commented 5 years ago

longmess() returns an array when the exception is a blessed object. Raisin was calling this in scalar context, resulting in $e set to '1'. By calling longmess() in list context, we can properly handle the return value(s).

adamgsg commented 5 years ago

Thank you! Can you release this to cpan ?

khrt commented 5 years ago

You're welcome, and thanks for the patch.

Just released it to CPAN. Should be available in couple of minutes.