Skip to content

Commit 0a8da77

Browse files
Fix async issue for generating the report in --sync mode.
1 parent 157a857 commit 0a8da77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/reporterHTML.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ let reportGenerator = (bsConfig, buildId, args, cb) => {
101101
},
102102
};
103103

104-
return request.get(options, function (err, resp, body) {
104+
return request.get(options, async function (err, resp, body) {
105105
let message = null;
106106
let messageType = null;
107107
let errorCode = null;
@@ -164,7 +164,7 @@ let reportGenerator = (bsConfig, buildId, args, cb) => {
164164
} else {
165165
messageType = Constants.messageTypes.SUCCESS;
166166
message = `Report for build: ${buildId} was successfully created.`;
167-
renderReportHTML(build);
167+
await renderReportHTML(build);
168168
logger.info(message);
169169
}
170170
utils.sendUsageReport(bsConfig, args, message, messageType, errorCode);

0 commit comments

Comments
 (0)