From 36c557a2258d67f46f5c8d8500a07956f9e62ccc Mon Sep 17 00:00:00 2001 From: Greg Nazario Date: Wed, 26 Apr 2023 01:25:12 -0700 Subject: [PATCH] [ts-sdk] Fix output errors of publish ANS contract script (#7926) --- ecosystem/typescript/sdk/scripts/publish_ans_contract.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecosystem/typescript/sdk/scripts/publish_ans_contract.ts b/ecosystem/typescript/sdk/scripts/publish_ans_contract.ts index dfc4ba57fab0f..f851e13e75bab 100644 --- a/ecosystem/typescript/sdk/scripts/publish_ans_contract.ts +++ b/ecosystem/typescript/sdk/scripts/publish_ans_contract.ts @@ -51,8 +51,9 @@ try { deleteAnsFolder(); } catch (error: any) { console.error("An error occurred:"); - console.error("parsed stdout", error.stdout.toString("utf8")); - console.error("parsed stderr", error.stderr.toString("utf8")); + console.error("Status", error?.status); + console.error("parsed stdout", error?.stdout?.toString("utf8")); + console.error("parsed stderr", error?.stderr?.toString("utf8")); deleteAnsFolder(); process.exit(1); }