Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 4ae4a1e

Browse files
committed
Changed from using Ruby's raise to abort.
1 parent dafc0e4 commit 4ae4a1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Vagrantfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,14 @@ Vagrant.require_version ">= 2.1"
372372

373373
vboxmanage = Vagrant::Util::Which.which("VBoxManage") || Vagrant::Util::Which.which("VBoxManage.exe")
374374
if vboxmanage == nil
375-
raise "WPLib Box needs VirtualBox 5.2 or greater.\n\n" \
376-
"\tPlease download and install VirtualBox from https://www.virtualbox.org/wiki/Downloads\n"
375+
abort "\nWPLib Box needs VirtualBox 5.2 or greater.\n" \
376+
"Please download and install VirtualBox from:\n\n\thttps://www.virtualbox.org/wiki/Downloads\n"
377377
else
378378
version = Vagrant::Util::Subprocess.execute(vboxmanage, '--version')
379379
version = Gem::Version.create(version.stdout.strip!)
380-
unless version >= Gem::Version.create('5.2')
381-
raise "WPLib Box needs VirtualBox 5.2 or greater. Your current version is " + version.version + "\n\n" \
382-
"\tPlease download a newer version of VirtualBox from https://www.virtualbox.org/wiki/Downloads\n"
380+
unless version >= Gem::Version.create('5.3')
381+
abort "\nWPLib Box needs VirtualBox 5.2 or greater. Your current version is " + version.version + "\n" \
382+
"Please download a newer version of VirtualBox from:\n\n\thttps://www.virtualbox.org/wiki/Downloads\n"
383383
end
384384
end
385385

0 commit comments

Comments
 (0)