Fix string handling in grid register

This commit is contained in:
Isaac Murchie
2016-03-15 08:50:46 -07:00
parent 75f2244fed
commit fab7946352
+3 -2
View File
@@ -110,11 +110,12 @@ async function isAlreadyRegistered (jsonObject) {
}
let responseData = JSON.parse(response.body);
if (responseData.success !== true) {
logger.debug("[ERROR] " + responseData.msg); // if register fail,print the debug msg
// if register fail, print the debug msg
logger.debug(`Grid registration error: ${responseData.msg}`);
}
return responseData.success;
} catch (err) {
logger.debug("Hub down or not responding: ${err.message}");
logger.debug(`Hub down or not responding: ${err.message}`);
}
}