From 6d332fd9618a2a949b2cf6ffeb9a1aa09cba56aa Mon Sep 17 00:00:00 2001
From: marie-fourier <sobirovutkir@gmail.com>
Date: Mon, 5 Aug 2024 17:19:12 +0500
Subject: [PATCH] logging

---
 packages/cli/src/cmds/node/handler.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/cli/src/cmds/node/handler.ts b/packages/cli/src/cmds/node/handler.ts
index b4ef5290..517ec2aa 100644
--- a/packages/cli/src/cmds/node/handler.ts
+++ b/packages/cli/src/cmds/node/handler.ts
@@ -51,7 +51,8 @@ export async function nodeHandler(args: IGlobalArgs): Promise<void> {
       redirectRpc: params.redirectRpc,
     });
   } catch (err) {
-    if (err instanceof Error && err.message.indexOf("chain id") > -1) {
+    logger.error(err);
+    if (err instanceof Error) {
       logger.error(err.message);
       return;
     }