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: Correctly throw errors when an invalid option is passed #1560

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

lj3954
Copy link
Member

@lj3954 lj3954 commented Jan 15, 2025

Description

Invalid editions, releases, languages, and operating systems do not throw errors, causing nonexistent functions to be called or attempting to download files from invalid URLs. This fixes the issue by properly checking to see if a full match of the value is contained within the string (separated by spaces), and in the case of windows languages, if the array contains the passed value.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my code
  • I have tested my code in common scenarios and confirmed there are no regressions

@philclifford philclifford merged commit f87cc61 into quickemu-project:master Feb 1, 2025
5 checks passed
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.

2 participants