lib/symmetric_encryption/railties/symmetric_encryption.rake in symmetric-encryption-3.6.0 vs lib/symmetric_encryption/railties/symmetric_encryption.rake in symmetric-encryption-3.7.0
- old
+ new
@@ -9,10 +9,10 @@
desc 'Encrypt a value, such as a password. Example: rake symmetric_encryption:encrypt'
task :encrypt => :environment do
begin
require 'highline'
rescue LoadError
- raise "Please install gem highline before using the command line task to encrypt an entered string.\n gem install \"highline\""
+ raise(SymmetricEncryption::ConfigError, "Please install gem highline before using the command line task to encrypt an entered string.\n gem install \"highline\"")
end
password1 = nil
password2 = 0
while password1 != password2