From 8782b7b0a4fc1f8ec5714b55b40170e0fee70bfb Mon Sep 17 00:00:00 2001 From: Kyryl R Date: Fri, 1 Nov 2024 12:51:25 +0200 Subject: [PATCH] Updated error filtering --- src/core/dependencies/parser/CircomFilesParser.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/dependencies/parser/CircomFilesParser.ts b/src/core/dependencies/parser/CircomFilesParser.ts index da28b29..074ee9a 100644 --- a/src/core/dependencies/parser/CircomFilesParser.ts +++ b/src/core/dependencies/parser/CircomFilesParser.ts @@ -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) {