lib/travis/cli/encrypt.rb in travis-1.7.1.travis.613.5 vs lib/travis/cli/encrypt.rb in travis-1.7.1
- old
+ new
@@ -43,9 +43,14 @@
save_travis_config
else
list = encrypted.map { |data| format(data.inspect, " secure: %s") }
say(list.join("\n"), template(__FILE__), :none)
end
+ rescue OpenSSL::PKey::RSAError => error
+ error "#{error.message.sub(" for key size", "")} - consider using " <<
+ color("travis encrypt-file", [:red, :bold]) <<
+ color(" or ", :red) <<
+ color("travis env set", [:red, :bold])
end
private
def add?