Skip to content

Commit

Permalink
Capturing suspected error location
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-murray authored Oct 11, 2024
1 parent 1832985 commit 7566a33
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions lib/github-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,14 @@ function proxyExcluded(noProxy, baseUrl) {
core.debug(`noProxyHosts = ${JSON.stringify(noProxyHosts)}`);

core.debug(`parsing baseURL: '${baseUrl}'`);
const parsedBaseUrl = new URL(baseUrl);
core.debug(`parsed = ${parsedBaseUrl}`);
core.debug(`base url host = '${parsedBaseUrl.host}'`);
try {
const parsedBaseUrl = new URL(baseUrl);
core.debug(`parsed = ${parsedBaseUrl}`);
core.debug(`base url host = '${parsedBaseUrl.host}'`);
} catch (err) {
core.error(`Failure in parsing the URL object`);
throw err;
}

return noProxyHosts.indexOf(parsedBaseUrl.host) > -1;
}
Expand Down

0 comments on commit 7566a33

Please sign in to comment.