We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9580252 commit 10d62a9Copy full SHA for 10d62a9
contract_manager/src/store.ts
@@ -86,7 +86,11 @@ export class Store {
86
this.getYamlFiles(`${this.path}/chains/`).forEach((yamlFile) => {
87
const parsedArray = parse(readFileSync(yamlFile, "utf-8"));
88
for (const parsed of parsedArray) {
89
- if (allChainClasses[parsed.type] === undefined) return;
+ if (allChainClasses[parsed.type] === undefined) {
90
+ throw new Error(
91
+ `No chain class found for chain type: ${parsed.type}`
92
+ );
93
+ }
94
const chain = allChainClasses[parsed.type].fromJson(parsed);
95
if (this.chains[chain.getId()])
96
throw new Error(`Multiple chains with id ${chain.getId()} found`);
0 commit comments