Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSulpiride committed Aug 5, 2024
1 parent 7780076 commit 6d332fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/cmds/node/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d332fd

Please sign in to comment.