synced_folders/nfs: use proper error classes

This commit is contained in:
Mitchell Hashimoto 2013-11-22 17:18:08 -08:00
parent be6d4cc116
commit 22a5430068
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ module VagrantPlugins
end
def enable(machine, folders, nfsopts)
raise Errors::NFSNoHostIP if !nfsopts[:nfs_host_ip]
raise Errors::NFSNoGuestIP if !nfsopts[:nfs_machine_ip]
raise Vagrant::Errors::NFSNoHostIP if !nfsopts[:nfs_host_ip]
raise Vagrant::Errors::NFSNoGuestIP if !nfsopts[:nfs_machine_ip]
machine_ip = nfsopts[:nfs_machine_ip]
machine_ip = [machine_ip] if !machine_ip.is_a?(Array)