st/oxr: Correct the error messages on sub action paths errors

This commit is contained in:
Jakob Bornecrantz 2020-05-30 23:32:06 +01:00
parent 6d61b9dec2
commit e5c9636f10
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
OpenXR: Correct the error messages on sub action paths errors.

View file

@ -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);
}