device: Include detailed error string in Connect() return
authorMiao-chen Chou <mcchou@chromium.org>
Thu, 30 Sep 2021 22:37:28 +0000 (15:37 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
commit942dd25d5c98a83c0b53844bfcd333f001c68073
tree7c84ed36644eae5cd1bb7b47fcffccae49aae827
parentda4a2395c2ca909f0f23de745f8f62e0720cef13
device: Include detailed error string in Connect() return

This replaces generic strerror message with context detailed error
string to better indicate the detailed failure reason so that the D-Bus
clients can optimize their application to work better with BlueZ, e.g.
introducing retry mechanism or building metrics.

Reviewed-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Howard Chung <howardchung@google.com>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c