lib/sym/app/private_key/decryptor.rb in sym-2.8.5 vs lib/sym/app/private_key/decryptor.rb in sym-2.10.0

- old
+ new

@@ -29,13 +29,13 @@ password_cache[encrypted_key] = p rescue ::OpenSSL::Cipher::CipherError => e input_handler.puts 'Invalid password. Please try again.' - if ((retries += 1) < 3) + if (retries += 1) < 3 retry else - raise(Sym::Errors::InvalidPasswordProvidedForThePrivateKey.new('Invalid password.')) + raise(Sym::Errors::WrongPasswordForKey.new('Invalid password.')) end end else decrypted_key = encrypted_key end