Skip to content

Commit 4250b46

Browse files
committed
Wrap checkProxyEnvironment call in try/catch for good measure
1 parent a3d7d36 commit 4250b46

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

lib/start-proxy-action.js

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

src/start-proxy-action.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,15 @@ async function run(startedAt: Date) {
7878
);
7979

8080
// Check the environment for any configurations which may affect the proxy.
81-
checkProxyEnvironment(logger, language);
81+
// This is a best effort process to give us insights into potential factors
82+
// which may affect the operation of our proxy.
83+
try {
84+
checkProxyEnvironment(logger, language);
85+
} catch (err) {
86+
logger.debug(
87+
`Unable to inspect runner environment: ${util.getErrorMessage(err)}`,
88+
);
89+
}
8290

8391
const ca = generateCertificateAuthority(
8492
await features.getValue(Feature.ImprovedProxyCertificates),

0 commit comments

Comments
 (0)