diff --git a/bin/helpers/atsHelper.js b/bin/helpers/atsHelper.js index 3e62ac54..729555d0 100644 --- a/bin/helpers/atsHelper.js +++ b/bin/helpers/atsHelper.js @@ -76,7 +76,11 @@ exports.getTurboScaleGridDetails = async (bsConfig, args, rawArgs) => { responseData = {}; } if(response.status != 200) { - logger.warn(`Warn: Get Automate TurboScale Details Request failed with status code ${response.status}`); + if (responseData.message == Constants.validationMessages.GRID_NOT_FOUND) { + logger.error(`Error: Invalid grid name '${gridName}' specified.`); + } else { + logger.error(`Error:Failed to fetch turboscale grid details with response code ${resp.statusCode}`); + }; utils.sendUsageReport(bsConfig, args, responseData["error"], Constants.messageTypes.ERROR, 'get_ats_details_failed', null, rawArgs); resolve({}); } diff --git a/bin/helpers/constants.js b/bin/helpers/constants.js index d55dc988..c37b00d6 100644 --- a/bin/helpers/constants.js +++ b/bin/helpers/constants.js @@ -196,6 +196,7 @@ const validationMessages = { "You have specified '--record' flag but you've not provided the '--record-key' and we could not find any value in 'CYPRESS_RECORD_KEY' environment variable. Your record functionality on cypress.io dashboard might not work as it needs the key and projectId", NODE_VERSION_PARSING_ERROR: "We weren't able to successfully parse the specified nodeVersion. We will be using the default nodeVersion to run your tests.", + GRID_NOT_FOUND: "Not Found", AUTO_IMPORT_CONFLICT_ERROR: "Cannot use both 'auto_import_dev_dependencies' and manual npm dependency configuration. Please either set 'auto_import_dev_dependencies' to false or remove manual 'npm_dependencies', 'win_npm_dependencies', and 'mac_npm_dependencies' configurations.", AUTO_IMPORT_INVALID_TYPE: