Skip to content

Commit 33498b5

Browse files
author
Gary Moore
committed
Add context to error message if encryption key is missing
I was deploying a fresh install to Heroku and this tripped me up for 15 minutes.
1 parent 402ff40 commit 33498b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/encryption.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def self.decrypt_sensitive_value(val = "")
2222

2323
# Should be able to just re-use the same key we already have!
2424
def self.key
25-
raise "Key Missing" if !(KEY)
25+
raise "Key Missing. Add one in initializers/key.rb" if !(KEY)
2626
KEY
2727
end
2828

0 commit comments

Comments
 (0)