From 95b726fa6fbb6b3eccbcb27338b5d422b0f5cbdc Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Mon, 20 Jul 2015 00:00:00 +1000 Subject: [PATCH] = hide error details --- lib/LDV/Imgbin.pm | 2 ++ 1 file changed, 2 insertions(+) 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');