From 6cd2331874c5e2c22e01d3c0a5cf2cd518436a7e Mon Sep 17 00:00:00 2001 From: Thomas Knudsen Date: Mon, 4 Dec 2023 17:16:30 +0100 Subject: [PATCH] Improve error message in axisswap 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 --- src/conversions/axisswap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conversions/axisswap.cpp b/src/conversions/axisswap.cpp index 22f6a9adc4..6c2d4e2664 100644 --- a/src/conversions/axisswap.cpp +++ b/src/conversions/axisswap.cpp @@ -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); }