synced_folders/nfs: use proper error classes
This commit is contained in:
parent
be6d4cc116
commit
22a5430068
|
@ -23,8 +23,8 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def enable(machine, folders, nfsopts)
|
def enable(machine, folders, nfsopts)
|
||||||
raise Errors::NFSNoHostIP if !nfsopts[:nfs_host_ip]
|
raise Vagrant::Errors::NFSNoHostIP if !nfsopts[:nfs_host_ip]
|
||||||
raise Errors::NFSNoGuestIP if !nfsopts[:nfs_machine_ip]
|
raise Vagrant::Errors::NFSNoGuestIP if !nfsopts[:nfs_machine_ip]
|
||||||
|
|
||||||
machine_ip = nfsopts[:nfs_machine_ip]
|
machine_ip = nfsopts[:nfs_machine_ip]
|
||||||
machine_ip = [machine_ip] if !machine_ip.is_a?(Array)
|
machine_ip = [machine_ip] if !machine_ip.is_a?(Array)
|
||||||
|
|
Loading…
Reference in New Issue