Skip to content

Commit

Permalink
feat: add alert when schematic graph exceeds the maximum size
Browse files Browse the repository at this point in the history
  • Loading branch information
qarlosalberto committed Jul 29, 2023
1 parent 172e975 commit 192ba8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/teroshdl/src/features/schematic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,13 @@ export class Schematic_manager extends Base_webview {
};

let jsonp = output_yosys.result;
output_yosys.result = await netlistsvg.render(skin, jsonp, undefined, undefined, config);
try {
output_yosys.result = await netlistsvg.render(skin, jsonp, undefined, undefined, config);
} catch (error) {
console.log(error);
this.logger.error("Generating the schematic graph. The graph exceeds the maximum size.", true);
return "";
}

return output_yosys;
}
Expand Down

0 comments on commit 192ba8c

Please sign in to comment.