Skip to content

Commit 4657282

Browse files
committed
fix: improve logging around failed cumulative updates
1 parent 0cf843e commit 4657282

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/main/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,14 @@ export async function downloadUpdateInstaller(config: VersionConfig): Promise<st
193193
const [, link] = body.match(/\s+href\s*=\s*["'](https:\/\/download\.microsoft\.com\/.*\.exe)['"]/) ?? [];
194194
if (link) {
195195
downloadLink = link;
196+
} else {
197+
core.info('Unable to find download link in body');
198+
core.debug(body);
196199
}
197200
}
198201
if (!downloadLink) {
199202
core.warning('Unable to download cumulative updates');
203+
core.info(`Response code: ${res.message.statusCode}`);
200204
return '';
201205
}
202206
}

0 commit comments

Comments
 (0)