lchtangen/SampleMind-AI---Beta

Improve error messages in audio engine

Open

#5 opened on Oct 4, 2025

View on GitHub
 (1 comment) (1 reaction) (2 assignees)Python (2 forks)auto 404
audiobeginnergood first issue

Repository metrics

Stars
 (1 star)
PR merge metrics
 (PR metrics pending)

Description

Description: Make error messages more helpful for users.

Tasks:

  • Add context to exceptions
  • Suggest solutions
  • Include relevant file paths

File: src/samplemind/core/engine/audio_engine.py

Example:

# Before
raise ValueError("Invalid audio file")

# After
raise ValueError(
    f"Invalid audio file: {file_path}\n"
    f"Supported formats: WAV, MP3, FLAC\n"
    f"Please check the file format and try again."
)

Difficulty: 🟢 Beginner Time: 1-2 hours

See docs/GOOD_FIRST_ISSUES.md Issue #5 for details.

Contributor guide