1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Review comments and making sure errors get passed through correctly.

This commit is contained in:
mike12345567 2020-10-20 16:04:18 +01:00
parent cfb274f34b
commit e5314b607d

View file

@ -47,7 +47,7 @@ async function checkAllDeployments(deployments, user) {
} catch (err) {
// system may have restarted, need to re-verify
if (
err != null &&
err !== undefined &&
err.code === "InvalidClientTokenId" &&
deployment.quota
) {
@ -59,6 +59,8 @@ async function checkAllDeployments(deployments, user) {
deployment.cfDistribution,
deployment.invalidationId
)
} else {
throw err
}
}
if (complete) {