Merge pull request #6 from Tradeshift/fix-error-message-handling

Fix error handling
This commit is contained in:
Pavel Gonchukov 2021-04-13 14:37:10 +02:00 committed by GitHub
commit c98cdc2000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

4
dist/setup/index.js generated vendored
View File

@ -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`);
}); });

View File

@ -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`);