From dd0bf5c20b0042fe9c475e41482b8fd6d70c044f Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Fri, 24 Sep 2021 09:49:10 +0200 Subject: [PATCH] Bluetooth: shell: Log failure to register authentication handlers Log failure to register authentication handlers since returning errors from the shell is not visible to the user. Signed-off-by: Joakim Andersson --- subsys/bluetooth/shell/bt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index fdbbfce08a4..fc813489cd1 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -2841,6 +2841,10 @@ static int cmd_auth(const struct shell *sh, size_t argc, char *argv[]) return SHELL_CMD_HELP_PRINTED; } + if (err) { + shell_error(sh, "Failed to set auth handlers (%d)", err); + } + return err; }