diff --git a/scripts/check-game-distribution-purchase-e2e.mjs b/scripts/check-game-distribution-purchase-e2e.mjs index bb4fff4f6..ccf6a9e47 100644 --- a/scripts/check-game-distribution-purchase-e2e.mjs +++ b/scripts/check-game-distribution-purchase-e2e.mjs @@ -1474,6 +1474,9 @@ async function main() { boundsGameCreated.status === 200 && Boolean(boundsGameId), `status=${boundsGameCreated.status} gameId=${String(boundsGameId)}`, ); + // 建游失败时下面的 /my-games/undefined 与 /games/undefined/versions 会级联报错, + // 掩盖真正的根因;这里与其它脚本一致,先记录失败再退出。 + if (!boundsGameId) process.exit(1); // 单游戏作者视图把自有条目挂在 `data.game` 下(`versions` 在条目里,不在顶层)。 const countBoundsVersions = async () => { const ownerEntry = await api(