diff --git a/bin/helpers/atsHelper.js b/bin/helpers/atsHelper.js index 90fed779..e1641e5f 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 2b0e83bf..2d9e54a4 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", }; const cliMessages = {