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 <joakim.andersson@nordicsemi.no>
diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c
index fdbbfce..fc81348 100644
--- a/subsys/bluetooth/shell/bt.c
+++ b/subsys/bluetooth/shell/bt.c
@@ -2841,6 +2841,10 @@
return SHELL_CMD_HELP_PRINTED;
}
+ if (err) {
+ shell_error(sh, "Failed to set auth handlers (%d)", err);
+ }
+
return err;
}