From 8f5307b2f49f1b2742dff5b7cc77f09698ff0ea9 Mon Sep 17 00:00:00 2001 From: Wanwiset Peerapatanapokin Date: Fri, 19 Jan 2024 16:53:29 +0400 Subject: [PATCH] test verbose docker error (#37) test verbose docker error --- scripts/FullCheckpointDeploy.js | 2 +- scripts/LiteCheckpointDeploy.js | 2 +- scripts/proxy/ProxyGatewayDeploy.js | 2 +- scripts/proxy/UpgradeCSC.js | 2 +- scripts/utils/subnet.js | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) 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" );