Skip to content

Commit

Permalink
Improve error message in axisswap
Browse files Browse the repository at this point in the history
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
  • Loading branch information
busstoptaktik authored Dec 4, 2023
1 parent 167e99d commit 6cd2331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversions/axisswap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ PJ *PJ_CONVERSION(axisswap, 0) {
if (!pj_param_exists(P->params, "order") ==
!pj_param_exists(P->params, "axis")) {
proj_log_error(P,
_("order and axis parameters are mutually exclusive."));
_("must provide EITHER 'order' OR 'axis' parameter."));
return pj_default_destructor(
P, PROJ_ERR_INVALID_OP_MUTUALLY_EXCLUSIVE_ARGS);
}
Expand Down

0 comments on commit 6cd2331

Please sign in to comment.