mirror of
https://github.com/kawasaki/pyscrlink.git
synced 2025-07-21 09:31:21 +02:00
BLESession: Refine error message for capability check
The error message on bluepy-helper capability check failure was not accurate. Refine it. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
This commit is contained in:
@@ -528,7 +528,8 @@ class BLESession(Session):
|
||||
if self.status == self.INITIAL and method == 'discover':
|
||||
if not bluepy_helper_cap.is_set():
|
||||
logger.error("Capability is not set to bluepy helper.")
|
||||
logger.error("Run bluepy_setcap.py with root privilege.")
|
||||
logger.error("Run bluepy_helper_cap(.py).")
|
||||
logger.error("e.g. $ bluepy_helper_cap")
|
||||
logger.error("e.g. $ sudo bluepy_helper_cap.py")
|
||||
sys.exit(1)
|
||||
found_ifaces = 0
|
||||
|
Reference in New Issue
Block a user