core: warn if no provider is specified that we can't check for it

This commit is contained in:
Mitchell Hashimoto 2013-12-31 08:38:58 -08:00
parent d86efdb9be
commit 619fe9a056
2 changed files with 9 additions and 1 deletions

View File

@ -33,7 +33,10 @@ module Vagrant
# Determine if we already have the box before downloading
# it again. We can only do this if we specify a format
if box_formats
if !box_formats
env[:ui].warn(I18n.t(
"vagrant.actions.box.download.no_provider_cant_check"))
else
begin
if env[:box_collection].find(box_name, box_formats)
raise Errors::BoxAlreadyExists,

View File

@ -1213,6 +1213,11 @@ en:
download_failed: |-
Download failed. Will try another box URL if there is one.
interrupted: "Box download was interrupted. Exiting."
no_provider_cant_check: |-
A provider wasn't explicitly provided to the "box add" command.
Without a provider, Vagrant can't verify if this box already
exists until the box is fully downloaded. This is just a warning,
and is not an error.
resuming: "Box download is resuming from prior download progress"
verify:
verifying: "Verifying box..."