diff --git a/lib/LDV/Imgbin.pm b/lib/LDV/Imgbin.pm index a2eb76d..7bccafe 100644 --- a/lib/LDV/Imgbin.pm +++ b/lib/LDV/Imgbin.pm @@ -168,6 +168,7 @@ sub prune { unlink $self->_thumb_path($time); } 1; } or do { + chomp $@; $self->app->log->error($@); $@ =~ s/\s+ at \s+ .+ \s+ line \s+ \d+//oxi; $self->flash(error => $@);