Danger/CI: Correctly swallow async errors
This commit is contained in:
parent
b138774454
commit
624adca360
1 changed files with 9 additions and 5 deletions
|
@ -15,10 +15,14 @@ function isGitDeletedError(error: unknown) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
async function main() {
|
||||||
run(migrateBackboneToRedux(), packageJsonVersionsShouldBePinned());
|
try {
|
||||||
} catch (error: unknown) {
|
await run(migrateBackboneToRedux(), packageJsonVersionsShouldBePinned());
|
||||||
if (!isGitDeletedError(error)) {
|
} catch (error: unknown) {
|
||||||
throw error;
|
if (!isGitDeletedError(error)) {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue