Let users know we were not able to SSH into the VM to remove symlinks

This commit is contained in:
Fabio Rehm 2013-10-17 13:56:27 -03:00
parent 9ebdc24da4
commit 199a14b61f
2 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,7 @@ module VagrantPlugins
end
def call(env)
@env = env
@machine = env[:machine]
if should_remove_symlinks?
@ -43,7 +44,7 @@ module VagrantPlugins
end
end
rescue Timeout::Error
# We timed out, we failed.
@env[:ui].warn(I18n.t('vagrant_cachier.unable_to_ssh'))
end
return false

View file

@ -11,6 +11,8 @@ en:
'%{current_path}' and it will be moved to
'%{new_path}' as it is the new path for keeping machine
scoped cache dirs starting with the 0.3.0 version of the plugin.
unable_to_ssh: |-
vagrant-cachier was unable to SSH into the VM to remove symlinks!
vagrant:
errors:
multiple_provider_specific_cache_dirs_found: |-