Skip to content

Commit

Permalink
Fix tests on old perl on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Jun 20, 2024
1 parent 418ffef commit 2b8e15b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t/lib/StringifyingException.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ use Kelp::Base;

attr data => undef;

use overload q{""} => sub {
use overload
q{""} => 'stringify',
fallback => 1,
;

sub stringify {
return 'Exception with data: [' . (join ',', @{$_[0]->data}) . ']';
};
}

1;

0 comments on commit 2b8e15b

Please sign in to comment.