Skip to content

Commit

Permalink
Update src/types/resolveStatements.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Trunov <anton.a.trunov@gmail.com>
  • Loading branch information
Gusarich and anton-trunov committed May 27, 2024
1 parent cd453f4 commit 09e595a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/resolveStatements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function processStatements(

// Add variable to statement context
if (sctx.vars.has(s.name)) {
throwError(`Variable already exists: "${s.name}"`, s.ref);
throwError(`Variable "${s.name}" already exists`, s.ref);
}
sctx = addVariable(s.name, variableType, sctx);
} else if (s.kind === "statement_assign") {
Expand Down

0 comments on commit 09e595a

Please sign in to comment.