From e5c9636f1039d8a6c972633fa5e75d0de12e9f5e Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 30 May 2020 23:32:06 +0100 Subject: [PATCH] st/oxr: Correct the error messages on sub action paths errors --- doc/changes/state_trackers/mr.359.13.md | 1 + src/xrt/state_trackers/oxr/oxr_verify.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 doc/changes/state_trackers/mr.359.13.md diff --git a/doc/changes/state_trackers/mr.359.13.md b/doc/changes/state_trackers/mr.359.13.md new file mode 100644 index 000000000..85c49ae0c --- /dev/null +++ b/doc/changes/state_trackers/mr.359.13.md @@ -0,0 +1 @@ +OpenXR: Correct the error messages on sub action paths errors. diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c index 6ccaf5709..712c9a254 100644 --- a/src/xrt/state_trackers/oxr/oxr_verify.c +++ b/src/xrt/state_trackers/oxr/oxr_verify.c @@ -328,7 +328,7 @@ subaction_path_no_dups(struct oxr_logger *log, size_t length = 0; oxr_path_get_string(log, inst, path, &str, &length); - return oxr_error(log, XR_ERROR_PATH_INVALID, + return oxr_error(log, XR_ERROR_PATH_UNSUPPORTED, "(%s[%u] == '%s') path is not a " "valid subaction path.", variable, index, str); @@ -340,7 +340,7 @@ subaction_path_no_dups(struct oxr_logger *log, oxr_path_get_string(log, inst, path, &str, &length); - return oxr_error(log, XR_ERROR_PATH_INVALID, + return oxr_error(log, XR_ERROR_PATH_UNSUPPORTED, "(%s[%u] == '%s') duplicate paths", variable, index, str); }