Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/helpers/atsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
}
Expand Down
1 change: 1 addition & 0 deletions bin/helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Loading