Skip to content

Commit 7b0502d

Browse files
authored
Merge pull request #64 from dhensby/pulls/update-log
fix: improve logging around failed cumulative updates
2 parents 2d65cde + 4657282 commit 7b0502d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/main/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

+4
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)