summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/JWebmail/Model/ReadMails/Role.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/JWebmail/Model/ReadMails/Role.pm b/lib/JWebmail/Model/ReadMails/Role.pm
index 3af73ed..d6472a1 100644
--- a/lib/JWebmail/Model/ReadMails/Role.pm
+++ b/lib/JWebmail/Model/ReadMails/Role.pm
@@ -55,7 +55,7 @@ around @methods => sub {
my @res;
my $succ = eval { @res = $orig->(@_); 1 };
$_[1]->{password} = $safe;
- die $@ unless $succ;
+ die unless $succ;
return wantarray ? @res : $res[$#res];
};