Review comments and making sure errors get passed through correctly.
This commit is contained in:
parent
cfb274f34b
commit
e5314b607d
|
@ -47,7 +47,7 @@ async function checkAllDeployments(deployments, user) {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// system may have restarted, need to re-verify
|
// system may have restarted, need to re-verify
|
||||||
if (
|
if (
|
||||||
err != null &&
|
err !== undefined &&
|
||||||
err.code === "InvalidClientTokenId" &&
|
err.code === "InvalidClientTokenId" &&
|
||||||
deployment.quota
|
deployment.quota
|
||||||
) {
|
) {
|
||||||
|
@ -59,6 +59,8 @@ async function checkAllDeployments(deployments, user) {
|
||||||
deployment.cfDistribution,
|
deployment.cfDistribution,
|
||||||
deployment.invalidationId
|
deployment.invalidationId
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
throw err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (complete) {
|
if (complete) {
|
||||||
|
|
Loading…
Reference in New Issue