Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Poor error message for invalid use of then keyword #5432

Open
STRd6 opened this issue Oct 27, 2022 · 2 comments
Open

Bug: Poor error message for invalid use of then keyword #5432

STRd6 opened this issue Oct 27, 2022 · 2 comments
Labels

Comments

@STRd6
Copy link
Contributor

STRd6 commented Oct 27, 2022

Input Code

then

Expected Behavior

[stdin]:1:1: error: unexpected then
then
^^^^

Current Behavior

TypeError: Cannot read properties of undefined (reading '2')

Context

This is very minor but thought I'd point it out.

https://coffeescript.org/#try:then

  • CoffeeScript version: 2.7.1
@GeoffreyBooth
Copy link
Collaborator

then is a CoffeeScript keyword, that can only be used in particular places.

@GeoffreyBooth
Copy link
Collaborator

Oh sorry I just realized that the issue was that the error message was incorrect. Yes, that should be fixed.

@GeoffreyBooth GeoffreyBooth reopened this Oct 28, 2022
@GeoffreyBooth GeoffreyBooth changed the title Bug: then parsing error Bug: Poor error message for invalid use of then keyword Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants