lib/sym/app/commands/keychain_add_key.rb in sym-3.0.0 vs lib/sym/app/commands/keychain_add_key.rb in sym-3.0.1
- old
+ new
@@ -11,10 +11,10 @@
incompatible_options %i(examples help version bash_support)
try_after :generate_key, :encrypt, :decrypt, :password_protect_key
def execute
if Sym.default_key? && Sym.default_key == self.key
- raise 'Refusing to import key specified in the default key file ' + Sym.default_key_file.italic
+ raise "Refusing to import key specified in the default key file #{Sym.default_key_file.italic}"
end
raise Sym::Errors::NoPrivateKeyFound.new("Unable to resolve private key from argument '#{opts[:key]}'") if self.key.nil?
add_to_keychain_if_needed(self.key)
self.key unless opts[:quiet]
end