Skip to content
Permalink
Browse files
Removed backtick strings
As it is not supported in previous versions
  • Loading branch information
Prithvirajbilla committed Aug 6, 2018
1 parent 3ec21f0 commit 90539159abebe0ecc5e3eef3b2175d3d78fb5322
Showing 1 changed file with 3 additions and 3 deletions.
@@ -103,10 +103,10 @@ exports.getPort = function (options, callback) {
options.startPort = Number(options.port);
if(options.startPort < 1024) {
// ports < 1024 are system/well-known ports - need super user privilege to bind to them.
throw Error(`Provided options.startPort(${options.startPort}) is less than 1024, which are cannot be bound.`)
throw Error('Provided options.startPort(' + options.startPort + ') is less than 1024, which are cannot be bound.');
}
if(options.stopPort < options.startPort) {
throw Error(`Provided options.stopPort(${options.stopPort}) is less than options.startPort (${options.startPort})`)
throw Error('Provided options.stopPort(' + options.stopPort + 'is less than options.startPort (' + options.startPort + ')');
}
}

@@ -181,7 +181,7 @@ exports.getPort = function (options, callback) {
return callback(null, openPorts[0]);
}
else {
var msg = `No open ports found in between ${options.startPort} and ${options.stopPort}`;
var msg = 'No open ports found in between '+ options.startPort + ' and ' + options.stopPort;
return callback(Error(msg));
}
} else {

0 comments on commit 9053915

Please sign in to comment.