Skip to content

[Enhancement] Improve error messages in code challenges #18

Description

@alimaandev

Problem\nWhen a player's code throws a syntax error or runtime exception, the error message is the raw JS error (e.g. 'ReferenceError: x is not defined'). This is intimidating for beginners.\n\nSolution\nMap common error types to friendly messages:\n- ReferenceError → 'Did you spell that variable correctly?'\n- SyntaxError → 'Check for missing brackets, parentheses, or commas'\n- TypeError → 'Make sure you're using the right type of value'\n\nLabels: enhancement, good first issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions