diff --git a/plugins/commands/cloud/publish.rb b/plugins/commands/cloud/publish.rb index 3f6000d31..346170e38 100644 --- a/plugins/commands/cloud/publish.rb +++ b/plugins/commands/cloud/publish.rb @@ -127,6 +127,10 @@ module VagrantPlugins @env.ui.error(e) return 1 end + rescue VagrantCloud::InvalidVersion => e + @env.ui.error(I18n.t("cloud_command.errors.publish.fail", org: org, box_name: box_name)) + @env.ui.error(e) + return 1 end begin diff --git a/vagrant.gemspec b/vagrant.gemspec index b9dd0b110..885c0d359 100644 --- a/vagrant.gemspec +++ b/vagrant.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |s| s.add_dependency "winrm", "~> 2.1" s.add_dependency "winrm-fs", "~> 1.0" s.add_dependency "winrm-elevated", "~> 1.1" - s.add_dependency "vagrant_cloud", "~> 2.0.0" + s.add_dependency "vagrant_cloud", "~> 2.0.2" # NOTE: The ruby_dep gem is an implicit dependency from the listen gem. Later versions # of the ruby_dep gem impose an aggressive constraint on the required ruby version (>= 2.2.5).