Skip to content

Commit f4aafd7

Browse files
committed
added message for statuscode
1 parent 3d325a1 commit f4aafd7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bin/commands/runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ module.exports = function run(args, rawArgs) {
195195
downloadBuildStacktrace(stacktraceUrl).then((message) => {
196196
utils.sendUsageReport(bsConfig, args, message, Constants.messageTypes.SUCCESS, null, buildReportData, rawArgs);
197197
}).catch((err) => {
198-
let message = `Downloading build stacktrace failed with statuscode: ${err}`;
198+
let message = `Downloading build stacktrace failed with statuscode: ${err}. Please visit ${data.dashboard_url} for additional details.`;
199199
logger.error(message);
200200
utils.sendUsageReport(bsConfig, args, message, Constants.messageTypes.ERROR, null, buildReportData, rawArgs);
201201
}).finally(() =>{

bin/helpers/downloadBuildStacktrace.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict'
22
const request = require('request');
33

4-
const downloadBuildStacktrace = async () => {
5-
let url = "https://automate-local.bsstag.com/s3-upload/cypress-dev-staging/s3.eu-central-1/70%%20cace12bc4d920ce6d7f647f66e4a3239e291d3/session_debug.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2XUQHUQMLDK6KO4W%2F20220131%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20220131T084205Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=a4ae9498d370040276dbed5fce1ed69c59db0f1809050c52baa5372e5f43e952"
4+
const downloadBuildStacktrace = async (url) => {
65
return new Promise(async (resolve, reject) => {
76
request.get(url).on('response', function (response) {
87
if(response.statusCode == 200) {

0 commit comments

Comments
 (0)