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

Improve error message in axisswap #3975

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Improve error message in axisswap #3975

merged 1 commit into from
Dec 4, 2023

Conversation

busstoptaktik
Copy link
Member

@busstoptaktik busstoptaktik commented Dec 4, 2023

The test for parameters in axisswap actually is a bit convoluted, but in essence it checks both whether ANY of the 'axis' and 'order' parameters are given, and whether BOTH are given.

Hence, the error message

"order and axis parameters are mutually exclusive"

is misleading in the case where none of the two is given. The updated message:

"must provide EITHER 'order' OR 'axis' parameter"

is intended to cover both cases in an informative way

  • Added clear title that can be used to generate release notes

The test for parameters in axisswap actually is a bit convoluted, but
in essence it checks both whether ANY of the 'axis' and 'order'
parameters are given, and whether BOTH are given.

Hence, the error message

"order and axis parameters are mutually exclusive"

is misleading in the case where none of the two is given.
The updated message:

"must provide EITHER 'order' OR 'axis' parameter"

is intended to cover both cases in an informative way
@kbevers kbevers merged commit 68487a3 into master Dec 4, 2023
45 checks passed
@kbevers kbevers deleted the busstoptaktik-patch-1 branch December 4, 2023 19:05
@kbevers kbevers added this to the 9.4.0 milestone Dec 4, 2023
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