Skip to content

Commit 430a001

Browse files
committed
Added logs for debugging journey-container
1 parent fde26f8 commit 430a001

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/dev-packages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Dev Packages
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches:
7+
- "**"
8+
tags-ignore:
9+
- "**"
510

611
env:
712
SECRETS: ${{ toJSON(secrets) }}

src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ export async function getChromeDriverDetails(
7272

7373
const url = `https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${chromeDetails.chromeVersion}`;
7474

75-
const chromeDriverVersion = await fetchText(url);
75+
let chromeDriverVersion: string;
76+
try {
77+
chromeDriverVersion = await fetchText(url);
78+
} catch (e) {
79+
console.error(`Failed to fetch ChromeDriver version ${chromeDetails.chromeVersion}`);
80+
throw e;
81+
}
7682

7783
return {
7884
chromeDriverVersion,

0 commit comments

Comments
 (0)