Skip to content

Conversation

@mattdawkins
Copy link
Member

Summary

  • Replace ctx.exit() with raise click.BadParameter(...) in pipeline_filepath_validator
  • Previously, passing a non-existent file to batbot pipeline would silently exit with code 0 (success), making it impossible for scripts or CI to detect the failure
  • click.BadParameter prints a proper error message with usage hints and exits with a non-zero status

Test plan

  • Run batbot pipeline nonexistent.wav and verify it exits with a non-zero code and a clear error message

🤖 Generated with Claude Code

pipeline_filepath_validator called ctx.exit() which exits with code 0
(success) when the input file does not exist. Use click.BadParameter
instead, which prints a proper error message and exits with a non-zero
status code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant