From a31e931b1b0708097e9ae07d59b436e21968943e Mon Sep 17 00:00:00 2001 From: Rafal Walczyna Date: Tue, 11 Dec 2018 15:44:25 +0100 Subject: [PATCH] [Bluetooth] Add new error value (AUTHORIZATION_REJECTED) New enum error value has been added to native API. Supporting this value will deliver better error description to developers. [verification] 100% TCT passrate on TM1 Change-Id: I8b2c2af6d4ff91e31d93ff60fd9dfac9a13e2152 Signed-off-by: Rafal Walczyna --- src/bluetooth/bluetooth_util.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bluetooth/bluetooth_util.cc b/src/bluetooth/bluetooth_util.cc index ca4a8138..1b378a1a 100644 --- a/src/bluetooth/bluetooth_util.cc +++ b/src/bluetooth/bluetooth_util.cc @@ -115,6 +115,8 @@ std::string GetBluetoothErrorMessage(int error_code) { return "Resource temporarily unavailable"; case BT_ERROR_SERVICE_NOT_FOUND: return "Service Not Found"; + case BT_ERROR_AUTHORIZATION_REJECTED: + return "Authorization rejected"; default: return "Unknown Error"; } -- 2.34.1