lib/sym/app/commands/password_protect_key.rb in sym-2.6.2 vs lib/sym/app/commands/password_protect_key.rb in sym-2.6.3

- old
+ new

@@ -9,10 +9,11 @@ incompatible_options %i(examples help version bash_support) try_after :generate_key, :encrypt, :decrypt def execute retries ||= 0 + raise Sym::Errors::NoPrivateKeyFound.new("Unable to resolve private key from argument '#{opts[:key]}'") if self.key.nil? the_key = self.key if opts[:password] encrypted_key, password = encrypt_with_password(the_key) @@ -22,10 +23,10 @@ add_to_keychain_if_needed(the_key) the_key rescue Sym::Errors::PasswordsDontMatch, Sym::Errors::PasswordTooShort => e - STDERR.puts e.message.bold + stderr.puts e.message.bold retry if (retries += 1) < 3 end end end