if ($reimage) {
eval {
$image->convert($wordcol{thumb}->{-src}->($row), $row->{thumb});
- } or Alert([ "Thumbnail image not generated", $@->[0] ], $@->[1]);
+ } or do {
+ my ($warn, @details) = ref $@ ? @{$@} : $@;
+ Alert([ "Thumbnail image not generated", $warn ], @details);
+ };
}
}}
else {