cli/lib/rbld_dockerops.rb in rbld-1.2.0 vs cli/lib/rbld_dockerops.rb in rbld-1.3.0

- old
+ new

@@ -41,11 +41,11 @@ end def get_credential(name, is_secret = false) print "#{name}: " predefined = ENV["RBLD_CREDENTIAL_#{name.upcase}"] - if predefined + unless predefined.to_s.empty? puts "<environment>" predefined else is_secret ? gets_password : STDIN.gets.chomp end @@ -117,10 +117,10 @@ def raise_last_error case @last_error when nil # No error - when /authentication required/, /unauthorized/ + when /authentication required/, /unauthorized/, /denied/ raise RegistryNotAuthenticatedError, @last_error else raise RegistryOperationError, @last_error end