Fix exception log error
authorjc815.lee <jc815.lee@samsung.com>
Mon, 14 Oct 2013 07:39:39 +0000 (16:39 +0900)
committerjc815.lee <jc815.lee@samsung.com>
Mon, 14 Oct 2013 07:40:28 +0000 (16:40 +0900)
[model]
[binary_type]
[customer]
[issue#]
[problem]
[cause]
[solution]
[team]
[request]
[horizontal_expansion]

Change-Id: I0d67dbb1787f6a8daae88da55634a465d59ec05e
Signed-off-by: jc815.lee <jc815.lee@samsung.com>
src/security/cert/FSecCert_Base64.cpp

index 2453f8d..275b279 100644 (file)
@@ -69,7 +69,8 @@ _Base64::Decode(char* pIn, int inSize, byte* pOut, int& outSize)
        }
 
        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())