Skip to content

Improve Error Messages in the Interpreter #3

@UnitaryIron

Description

@UnitaryIron

Task

Enhance error handling in the Jam interpreter to provide clearer, more descriptive error messages.

Goal

Improve user experience by ensuring that runtime and syntax errors include:

  • The type of error
  • The line number (if possible)
  • A helpful description of the issue

Suggested Approach

  • Review places in the interpreter where exceptions are raised.
  • Wrap error-prone blocks with try/except and provide detailed error messages.
  • Standardize error outputs for consistency.

Requirements

  • Knowledge of Python exception handling.
  • Understanding of interpreter structure.

Difficulty

Intermediate

Bonus

  • Add unit tests that deliberately trigger these errors to ensure messages are clear.

If you're new to open source, check out our Contributing Guide in the repository. Feel free to ask questions in our Discord: https://discord.gg/GgB8hbvR

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededinterpreterThis task involves working with an interpreter.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions