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

error message when "while" or "until" have no condition #4394

Open
p6rt opened this issue Jul 11, 2015 · 1 comment
Open

error message when "while" or "until" have no condition #4394

p6rt opened this issue Jul 11, 2015 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jul 11, 2015

Migrated from rt.perl.org#125597 (status was 'new')

Searchable as RT125597$

@p6rt
Copy link
Author

p6rt commented Jul 11, 2015

From @AlexDaniel

Code​:
repeat { } while;
OR
repeat { } until;

Result​:
Whitespace required after keyword 'repeat { } until'
at ./test.pl​:2
------> repeat { } until⏏;
Missing "while" or "until"
at ./test.pl​:2
------> repeat { } until⏏;
  expecting any of​:
  prefix
  term

It is similar to #​125596, but less brutal.
If you put a whitespace (it is asking for it!) then it will print the last
part of the error – Missing "while" or "until". Then what? repeat { } until
until;? :)

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant