Skip to content

Commit

Permalink
Updated error filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Nov 1, 2024
1 parent 13d7274 commit 8782b7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/dependencies/parser/CircomFilesParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class CircomFilesParser {
circomFilesVisitor.visit(context);

const visitorErrors = circomFilesVisitor.errors.filter(
(error) => error.type === ErrorType.SignalDimensionResolution,
(error) =>
error.type === ErrorType.InvalidPragmaVersion ||
error.type === ErrorType.TemplateAlreadyUsed ||
error.type === ErrorType.FailedToResolveMainComponentParameter,
);

if (visitorErrors.length > 0) {
Expand Down

0 comments on commit 8782b7b

Please sign in to comment.