From b1cc8bd50938165902dbb0fad598d298745efc53 Mon Sep 17 00:00:00 2001 From: JQQQ Date: Mon, 20 Mar 2023 18:24:32 +1300 Subject: [PATCH 1/2] Fix codegen when abi is not valid --- packages/cli/src/controller/codegen-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/controller/codegen-controller.ts b/packages/cli/src/controller/codegen-controller.ts index 0aee7c81d0..64d92accb0 100644 --- a/packages/cli/src/controller/codegen-controller.ts +++ b/packages/cli/src/controller/codegen-controller.ts @@ -230,7 +230,7 @@ export async function generateAbis(datasources: DatasourceKind[], projectPath: s }) ); } catch (e) { - throw new Error(`When render abi interface having problems.`); + console.error(`! When render abi interface having problems. ${e.message}`); } } } From 4b189d468440bec08abd43e3a354dfcbc1ad09c9 Mon Sep 17 00:00:00 2001 From: Jay Ji Date: Tue, 21 Mar 2023 11:10:43 +1300 Subject: [PATCH 2/2] Update packages/cli/src/controller/codegen-controller.ts Co-authored-by: Scott Twiname --- packages/cli/src/controller/codegen-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/controller/codegen-controller.ts b/packages/cli/src/controller/codegen-controller.ts index 64d92accb0..915ab78bb5 100644 --- a/packages/cli/src/controller/codegen-controller.ts +++ b/packages/cli/src/controller/codegen-controller.ts @@ -230,7 +230,7 @@ export async function generateAbis(datasources: DatasourceKind[], projectPath: s }) ); } catch (e) { - console.error(`! When render abi interface having problems. ${e.message}`); + console.error(`! Unable to generate abi interface. ${e.message}`); } } }