mirror of
https://github.com/appium/appium.git
synced 2026-10-23 00:59:18 +08:00
updates error message to account for bad address error
This commit is contained in:
@@ -190,7 +190,11 @@ var main = function(args, readyCb, doneCb) {
|
||||
}
|
||||
});
|
||||
server.on('error', function(err) {
|
||||
logger.error("Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already.");
|
||||
if (err.code === 'EADDRNOTAVAIL') {
|
||||
logger.error("Couldn't start Appium REST http interface listener. Requested address is not available.");
|
||||
} else {
|
||||
logger.error("Couldn't start Appium REST http interface listener. Requested port is already in use. Please make sure there's no other instance of Appium running already.");
|
||||
}
|
||||
if (!alreadyReturned) {
|
||||
alreadyReturned = true;
|
||||
cb(err);
|
||||
|
||||
Reference in New Issue
Block a user