We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd28c2e commit 4e0e796Copy full SHA for 4e0e796
scripts/startup-checks/rpc.mjs
@@ -36,8 +36,7 @@ const checkRPC = async (url, chainId) => {
36
console.info(`[checkRPC] [chainId=${chainId}] RPC ${domain} is working`);
37
return { domain, chainId, success: true };
38
} else {
39
- console.error(`[checkRPC] [chainId=${chainId}] Expected chainId ${chainId}, but got ${chainIdClient}`);
40
- return { domain, chainId, success: false };
+ throw new Error(`Expected chainId ${chainId}, but got ${chainIdClient}`)
41
}
42
} catch (err) {
43
console.error(`[checkRPC] [chainId=${chainId}] Error checking RPC ${domain}: ${err.message}`);
0 commit comments