Skip to content

Commit dd0bf5c

Browse files
joerchancarlescufi
authored andcommitted
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 <[email protected]>
1 parent 0207e86 commit dd0bf5c

File tree

1 file changed

+4
-0
lines changed
  • subsys/bluetooth/shell

1 file changed

+4
-0
lines changed

subsys/bluetooth/shell/bt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,6 +2841,10 @@ static int cmd_auth(const struct shell *sh, size_t argc, char *argv[])
28412841
return SHELL_CMD_HELP_PRINTED;
28422842
}
28432843

2844+
if (err) {
2845+
shell_error(sh, "Failed to set auth handlers (%d)", err);
2846+
}
2847+
28442848
return err;
28452849
}
28462850

0 commit comments

Comments
 (0)