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_mobile/20150612.133019^2~2^2~131^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=872e5c651d45eec0c5cb0bfc765ee7d98536356a;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 89f3f4d8..053e6b56 100644 --- a/src/nfc/nfc_util.cc +++ b/src/nfc/nfc_util.cc @@ -31,8 +31,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: