mirror of
https://github.com/appium/appium.git
synced 2026-05-08 03:49:30 -05:00
Update grid-register.js
If register fail, print the failure details friendly to we newbee.
This commit is contained in:
@@ -109,6 +109,9 @@ async function isAlreadyRegistered (jsonObject) {
|
||||
throw new Error(`Request failed`);
|
||||
}
|
||||
let responseData = JSON.parse(response.body);
|
||||
if (responseData.success !== true) {
|
||||
logger.debug("[ERROR] " + responseData.msg); // if register fail,print the debug msg
|
||||
}
|
||||
return responseData.success;
|
||||
} catch (err) {
|
||||
logger.debug("Hub down or not responding: ${err.message}");
|
||||
|
||||
Reference in New Issue
Block a user