diff --git a/lib/controller.js b/lib/controller.js index 559a878e..f9187e71 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -638,15 +638,15 @@ controller.createAccessPoint = function(opts) { return new Promise(function(resolve, reject) { if (!ssid) { - reject(new Error('Invalid credentials. Must set ssid')); + reject('Invalid credentials. Must set ssid'); } if (security && !password) { - reject(new Error('Invalid credentials. Must set a password with security option')); + reject('Invalid credentials. Must set a password with security option'); } if (security && securityOptions.indexOf(security) < 0) { - reject(new Error(security + ' is not a valid security option. Please choose on of the following: ' + securityOptions.join(', '))); + reject(security + ' is not a valid security option. Please choose on of the following: ' + securityOptions.join(', ')); } resolve(); })