From: Tomasz Marciniak Date: Tue, 19 May 2015 13:18:42 +0000 (+0200) Subject: [NFC] Return proper PlatformResult in case of NOT_SUPPORTED error. X-Git-Tag: submit/tizen_tv/20150603.064601^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f1a42ea229290fc17ae781743a775483d6f8348;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [NFC] Return proper PlatformResult in case of NOT_SUPPORTED error. [Verification] Code compiles without errors. Change-Id: Id06a62e925fd4546bd5f36a8e9bffb830a040a7f Signed-off-by: Tomasz Marciniak --- diff --git a/src/nfc/nfc_util.cc b/src/nfc/nfc_util.cc index bcf25a4a..6837bcf8 100644 --- a/src/nfc/nfc_util.cc +++ b/src/nfc/nfc_util.cc @@ -45,8 +45,9 @@ PlatformResult NFCUtil::CodeToResult(const int errorCode, case NFC_ERROR_SECURITY_RESTRICTED: case NFC_ERROR_PERMISSION_DENIED: return PlatformResult(ErrorCode::SECURITY_ERR, message); - case NFC_ERROR_NOT_ACTIVATED: case NFC_ERROR_NOT_SUPPORTED: + return PlatformResult(ErrorCode::NOT_SUPPORTED_ERR, message); + case NFC_ERROR_NOT_ACTIVATED: case NFC_ERROR_OPERATION_FAILED: case NFC_ERROR_DEVICE_BUSY: case NFC_ERROR_NO_DEVICE: