Skip to content

[update_checkout] Improved validation failure diagnostic. #34124

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

Conversation

nate-chandler
Copy link
Contributor

Previously, if an alias were defined for multiple schemes, the produced diagnostic would only say that there was a collision, but did not specify where that collision was. Here, the diagnostic is improved to read

RuntimeError: Configuration file defines the alias ALIAS in both the SCHEME_NAME_1 scheme and the SCHEME_NAME_2 scheme?!

Previously, if an alias were defined for multiple schemes, the produced
diagnostic would only say that there was a collision, but did not
specify where that collision was.  Here, the diagnostic is improved to
read

    RuntimeError: Configuration file defines the alias ALIAS in both the
                  SCHEME_NAME_1 scheme and the SCHEME_NAME_2 scheme?!
@nate-chandler
Copy link
Contributor Author

@swift-ci Please Python Lint

@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test

@shahmishal shahmishal merged commit e903630 into swiftlang:main Sep 30, 2020
@AnthonyLatsis AnthonyLatsis added the update-checkout Area → utils: the `update-checkout` script label Sep 28, 2022
@nate-chandler nate-chandler deleted the update-checkout/better-config-validation-failure-diagnostic branch July 5, 2023 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-checkout Area → utils: the `update-checkout` script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants