diff --git a/scripts/FullCheckpointDeploy.js b/scripts/FullCheckpointDeploy.js index 936a7cf..79d38e3 100644 --- a/scripts/FullCheckpointDeploy.js +++ b/scripts/FullCheckpointDeploy.js @@ -13,7 +13,7 @@ async function main() { try { full = await checkpointFactory.deploy(); } catch (e) { - console.log(e) + console.error(e, "\n") throw Error( "deploy to parentnet node failure , pls check the parentnet node status" ); diff --git a/scripts/LiteCheckpointDeploy.js b/scripts/LiteCheckpointDeploy.js index 042b0fa..d59eec6 100644 --- a/scripts/LiteCheckpointDeploy.js +++ b/scripts/LiteCheckpointDeploy.js @@ -14,7 +14,7 @@ async function main() { try { lite = await checkpointFactory.deploy(); } catch (e) { - console.log(e) + console.error(e, "\n") throw Error( "deploy to parentnet node failure , pls check the parentnet node status" ); diff --git a/scripts/proxy/ProxyGatewayDeploy.js b/scripts/proxy/ProxyGatewayDeploy.js index 8a56bb1..93a539b 100644 --- a/scripts/proxy/ProxyGatewayDeploy.js +++ b/scripts/proxy/ProxyGatewayDeploy.js @@ -10,7 +10,7 @@ async function main() { try { proxyGateway = await proxyGatewayFactory.deploy(); } catch (e) { - console.log(e) + console.error(e, "\n") throw Error( "deploy to parentnet node failure , pls check the parentnet node status" ); diff --git a/scripts/proxy/UpgradeCSC.js b/scripts/proxy/UpgradeCSC.js index 00bb069..4239f8f 100644 --- a/scripts/proxy/UpgradeCSC.js +++ b/scripts/proxy/UpgradeCSC.js @@ -24,7 +24,7 @@ async function main() { try { full = await fullFactory.deploy(); } catch (e) { - console.log(e) + console.error(e, "\n") throw Error( "deploy to parentnet node failure , pls check the parentnet node status" ); diff --git a/scripts/utils/subnet.js b/scripts/utils/subnet.js index 0c06873..a98d0e8 100644 --- a/scripts/utils/subnet.js +++ b/scripts/utils/subnet.js @@ -29,6 +29,7 @@ async function data() { data0 = await block0res.json(); data1 = await block1res.json(); } catch (e) { + console.error(e, "\n") throw Error( "Fetch remote subnet node data error , pls check the subnet node status" );