diff options
author | Daniel Steen <dsteen@millennialmedia.com> | 2016-01-19 18:36:32 -0500 |
---|---|---|
committer | Daniel Steen <dsteen@millennialmedia.com> | 2016-01-19 18:36:32 -0500 |
commit | 5692b8fd62795925d787e2c9870c5359a9a90f60 (patch) | |
tree | 2bc3c1fbacb32b7ecdf6bb221c1e4ba6ebd6b3b7 | |
parent | 7ec34e35657ca1f0330667da53bec1366ba5bdf8 (diff) | |
download | chef-5692b8fd62795925d787e2c9870c5359a9a90f60.tar.gz |
fixed typo and reworked language per lamont
-rw-r--r-- | lib/chef/encrypted_data_bag_item/decryptor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/encrypted_data_bag_item/decryptor.rb b/lib/chef/encrypted_data_bag_item/decryptor.rb index 0066e2b5ec..fc6098436e 100644 --- a/lib/chef/encrypted_data_bag_item/decryptor.rb +++ b/lib/chef/encrypted_data_bag_item/decryptor.rb @@ -93,7 +93,7 @@ class Chef::EncryptedDataBagItem plaintext << openssl_decryptor.final rescue OpenSSL::Cipher::CipherError => e # if the key length is less than 150 characters, and it contains slashes, we think it may be a path. - raise DecryptionFailure, "Error decrypting data bag value: '#{e.message}'. Most likely the provided key is incorrect. #{ @key.length < 255 and @key.include?('/') ? 'Did you perhapse intend to use --secret-file rather than --secret?' : '' }" + raise DecryptionFailure, "Error decrypting data bag value: '#{e.message}'. Most likely the provided key is incorrect. #{ @key.length < 255 and @key.include?('/') ? 'You may need to use --secret-file rather than --secret.' : '' }" end end @@ -144,7 +144,7 @@ class Chef::EncryptedDataBagItem plaintext << openssl_decryptor.final rescue OpenSSL::Cipher::CipherError => e # if the key length is less than 150 characters, and it contains slashes, we think it may be a path. - raise DecryptionFailure, "Error decrypting data bag value: '#{e.message}'. Most likely the provided key is incorrect. #{ @key.length < 255 and @key.include?('/') ? 'Did you perhapse intend to use --secret-file rather than --secret?' : '' }" + raise DecryptionFailure, "Error decrypting data bag value: '#{e.message}'. Most likely the provided key is incorrect. #{ @key.length < 255 and @key.include?('/') ? 'You may need to use --secret-file rather than --secret.' : '' }" end end |