CLI: Print plugin name on load fail

This commit is contained in:
Willy-JL
2024-09-06 01:29:27 +02:00
parent f65d4bb233
commit fc2f49b66b
2 changed files with 5 additions and 1 deletions

View File

@@ -497,7 +497,10 @@ void cli_plugin_wrapper(const char* name, Cli* cli, FuriString* args, void* cont
const CliCallback handler = plugin_manager_get_ep(manager, 0);
handler(cli, args, context);
} else {
printf("CLI plugin failed (code %" PRIu16 "), update firmware or check logs\r\n", error);
printf(
"CLI plugin '%s' failed (code %" PRIu16 "), update firmware or check logs\r\n",
name,
error);
}
furi_string_free(path);
plugin_manager_free(manager);