From: Yonggoo Kang Date: Tue, 30 Jul 2024 12:00:27 +0000 (+0900) Subject: Replace error code to message on manual tests for readability X-Git-Tag: accepted/tizen/unified/20240829.091424~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a318f26ea1c9c5efafbda4b18fee38bb7359a7c;p=platform%2Fcore%2Fsecurity%2Fwebauthn-ble.git Replace error code to message on manual tests for readability Change-Id: Ie8b504019459e7bf49674b48b33db6e3bf3e0cff --- diff --git a/tests/man_tests.cpp b/tests/man_tests.cpp index 72d211b..60f3670 100644 --- a/tests/man_tests.cpp +++ b/tests/man_tests.cpp @@ -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;