mirror of
https://github.com/actions/setup-java.git
synced 2025-06-30 04:54:14 +00:00
Fix error handling
This commit is contained in:
parent
0ddd7a4320
commit
084397f610
2 changed files with 2 additions and 6 deletions
4
dist/setup/index.js
generated
vendored
4
dist/setup/index.js
generated
vendored
|
@ -11107,9 +11107,7 @@ function setupMaven(opts) {
|
|||
]);
|
||||
}
|
||||
catch (e) {
|
||||
if (!e.message.includes('already exists')) {
|
||||
throw e;
|
||||
}
|
||||
core.warning(`keytool return an error: ${e.message}`);
|
||||
}
|
||||
core.debug(`added maven opts for MTLS access`);
|
||||
});
|
||||
|
|
|
@ -78,9 +78,7 @@ export async function setupMaven(opts: MavenOpts): Promise<void> {
|
|||
rooCaPath
|
||||
]);
|
||||
} catch (e) {
|
||||
if (!(e as Error).message.includes('already exists')) {
|
||||
throw e;
|
||||
}
|
||||
core.warning(`keytool return an error: ${(e as Error).message}`);
|
||||
}
|
||||
|
||||
core.debug(`added maven opts for MTLS access`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue