Skip to content

Commit

Permalink
chore: add a bit more of context in statement list parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Dec 11, 2023
1 parent 77b4596 commit 1f771e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export class Parser {
}

if (this.current_token?.type !== TokenType.END) {
throw new Error("Expected \"fin\".");
throw new Error(`Token attendu: END\nToken actuel: ${this.current_token?.type}`);
}

return results;
Expand Down

0 comments on commit 1f771e9

Please sign in to comment.