From 33498b59383030edd6388540b96e1406898f2255 Mon Sep 17 00:00:00 2001 From: Gary Moore Date: Fri, 9 Feb 2018 12:32:37 -0500 Subject: [PATCH] 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. --- lib/encryption.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/encryption.rb b/lib/encryption.rb index 3ec9fbe..bf654e6 100644 --- a/lib/encryption.rb +++ b/lib/encryption.rb @@ -22,7 +22,7 @@ module Encryption # Should be able to just re-use the same key we already have! def self.key - raise "Key Missing" if !(KEY) + raise "Key Missing. Add one in initializers/key.rb" if !(KEY) KEY end