Replace error code to message on manual tests for readability 50/315350/1
authorYonggoo Kang <ygace.kang@samsung.com>
Tue, 30 Jul 2024 12:00:27 +0000 (21:00 +0900)
committerYonggoo Kang <ygace.kang@samsung.com>
Tue, 30 Jul 2024 12:00:48 +0000 (21:00 +0900)
Change-Id: Ie8b504019459e7bf49674b48b33db6e3bf3e0cff

tests/man_tests.cpp

index 72d211b9f797716fc57e90c42ca478a6d075f791..60f3670c5cd5a3cf5f1d615c7fc3d4c7d641f112 100644 (file)
@@ -371,7 +371,8 @@ void MCCallback(const wauthn_pubkey_credential_attestation_s *pubkey_cred,
         return;
     }
     if (result != WAUTHN_ERROR_NONE) {
-        std::cout << __FUNCTION__ << ": response_callback failed with code " << result
+        std::cout << __FUNCTION__ << ": response_callback failed: "
+                  << get_error_message(result)
                   << std::endl; // NOLINT(performance-avoid-endl)
         testContents->succeeded = false;
         return;
@@ -423,7 +424,8 @@ void GACallback(const wauthn_pubkey_credential_assertion_s *pubkey_cred,
         return;
     }
     if (result != WAUTHN_ERROR_NONE) {
-        std::cout << __FUNCTION__ << ": response_callback failed with code " << result
+        std::cout << __FUNCTION__ << ": response_callback failed: "
+                  << get_error_message(result)
                   << std::endl; // NOLINT(performance-avoid-endl)
         testContents->succeeded = false;
         return;
@@ -489,7 +491,8 @@ void UpdateLinkedDataCallbackImpl(const wauthn_hybrid_linked_data_s *linkedData,
     if (result == WAUTHN_ERROR_NONE)
         seenLastUpdateCallback = true;
     else if (result != WAUTHN_ERROR_NONE_AND_WAIT) {
-        std::cout << __FUNCTION__ << ": update_linked_data callback failed with code: " << result
+        std::cout << __FUNCTION__ << ": update_linked_data callback failed with code: "
+                  << get_error_message(result)
                   << std::endl; // NOLINT(performance-avoid-endl)
         testContents.succeeded = false;
         return;