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

🪲 in level 5, error message should be improved #5099

Closed
hasan-sh opened this issue Feb 8, 2024 · 0 comments · Fixed by #5391
Closed

🪲 in level 5, error message should be improved #5099

hasan-sh opened this issue Feb 8, 2024 · 0 comments · Fixed by #5391
Assignees
Labels
bug Something isn't working

Comments

@hasan-sh
Copy link
Collaborator

hasan-sh commented Feb 8, 2024

Describe the bug
a student handed in a program that has the following if statement:

if antwoord in hehe print 'nou.. ga maar dan'
sleep 2
print 'en wees voorzichtig..'
else print 'WEGWEZEN!'

The following is the error message:
Add a screenshot (optional)
image

@hasan-sh hasan-sh added the bug Something isn't working label Feb 8, 2024
@boryanagoncharenko boryanagoncharenko self-assigned this Apr 4, 2024
@mergify mergify bot closed this as completed in #5391 Apr 16, 2024
mergify bot pushed a commit that referenced this issue Apr 16, 2024
Fixes #5099
Add a custom error in levels 5-7 when there is an `else` statement when there is no `if` right before it.

**How to test**
Run the following snippets in levels 5-7 and check that the custom error is appropriate:
```
if answer is yes print 'great!'
print 'correct'
else print 'wrong'
```
```
else print 'wrong'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants