From 2c587445e9becb0ec871428fa1c22006af634a20 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Fri, 13 Feb 2015 11:26:11 -0800 Subject: [PATCH] Removing error if vmdestroy is called without VirtualBox --- src/VirtualBox.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/VirtualBox.js b/src/VirtualBox.js index 4831870280..880a06b806 100644 --- a/src/VirtualBox.js +++ b/src/VirtualBox.js @@ -31,8 +31,8 @@ var VirtualBox = { return util.exec(['pkill', 'VirtualBox']); }).then(() => { return util.exec(['pkill', 'VBox']); - }).catch(err => { - + }).catch(() => { + }); }, vmstate: function (name) { @@ -48,9 +48,6 @@ var VirtualBox = { }, vmdestroy: function (name) { return Promise.coroutine(function* () { - if (!this.installed()) { - return Promise.reject('VirtualBox not installed.'); - } try { var state = yield this.vmstate(name); if (state === 'running') {