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>
This commit is contained in:
parent
0207e86e38
commit
dd0bf5c20b
1 changed files with 4 additions and 0 deletions
|
@ -2841,6 +2841,10 @@ static int cmd_auth(const struct shell *sh, size_t argc, char *argv[])
|
||||||
return SHELL_CMD_HELP_PRINTED;
|
return SHELL_CMD_HELP_PRINTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (err) {
|
||||||
|
shell_error(sh, "Failed to set auth handlers (%d)", err);
|
||||||
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue