diff --git a/lib/LDV/Imgbin.pm b/lib/LDV/Imgbin.pm index 0c97419..84ada45 100644 --- a/lib/LDV/Imgbin.pm +++ b/lib/LDV/Imgbin.pm @@ -169,6 +169,8 @@ sub prune { unlink $self->_thumb_path($time); } 1; } or do { + $self->app->log->error($@); + $@ =~ s/\s+ at \s+ .+ \s+ line \s+ \d+//oxi; $self->flash(error => $@); }; $self->redirect_to('/imgbin');