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; }