summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/KiokuDB/Serializer/Crypt.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/KiokuDB/Serializer/Crypt.pm b/lib/KiokuDB/Serializer/Crypt.pm
index e891dd1..159c0d6 100644
--- a/lib/KiokuDB/Serializer/Crypt.pm
+++ b/lib/KiokuDB/Serializer/Crypt.pm
@@ -40,6 +40,7 @@ has crypt_key => (
is => 'ro',
isa => 'Str',
default => sub {
+ my $self = shift;
confess "The 'crypt_key' attribute for " . blessed($self)
. " is required if the 'crypt' attribute is not given";
},