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

fix: rename syntax errors #201

Merged

Conversation

ojeytonwilliams
Copy link
Contributor

Checklist:

Updates the error formatter so that it renames the File when there is a syntax error.

Given the code var=

>>> Traceback (most recent call last):
  File "<exec>", line 1
    var=
        ^
SyntaxError: invalid syntax

becomes

>>> Traceback (most recent call last):
  File "main.py", line 1
    var=
        ^
SyntaxError: invalid syntax

@ojeytonwilliams ojeytonwilliams merged commit 57a3cc8 into freeCodeCamp:main Apr 30, 2024
4 checks passed
@ojeytonwilliams ojeytonwilliams deleted the fix/syntax-error-renaming branch April 30, 2024 08:19
@zairahira
Copy link
Member

Sharing for reference, works perfectly on learn:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants