mirror of
https://github.com/actions/setup-java.git
synced 2025-06-30 13:04:13 +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) {
|
catch (e) {
|
||||||
if (!e.message.includes('already exists')) {
|
core.warning(`keytool return an error: ${e.message}`);
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
core.debug(`added maven opts for MTLS access`);
|
core.debug(`added maven opts for MTLS access`);
|
||||||
});
|
});
|
||||||
|
|
|
@ -78,9 +78,7 @@ export async function setupMaven(opts: MavenOpts): Promise<void> {
|
||||||
rooCaPath
|
rooCaPath
|
||||||
]);
|
]);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!(e as Error).message.includes('already exists')) {
|
core.warning(`keytool return an error: ${(e as Error).message}`);
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
core.debug(`added maven opts for MTLS access`);
|
core.debug(`added maven opts for MTLS access`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue