}
std::unique_ptr< ByteBuffer > pDecodedBuffer(Tizen::Base::Utility::StringUtil::DecodeBase64StringN(encodedStr));
- SysTryReturn(NID_SEC_CERT, GetLastResult() == E_SUCCESS, -1 , E_SYSTEM, "[%s]. Failed to DecideBase64StringN.", GetLastResult());
+ result r = GetLastResult();
+ SysTryReturn(NID_SEC_CERT, r == E_SUCCESS, -1 , E_SYSTEM, "[%s] Failed to DecodeBase64StringN.", GetErrorMessage(r));
SysTryReturn(NID_SEC_CERT, pDecodedBuffer != null, -1, E_SYSTEM, "[E_SYSTEM] Failed to perform base64 decoding.");
if (outSize > pDecodedBuffer->GetRemaining())