diff --git a/applications/services/loader/loader_cli.c b/applications/services/loader/loader_cli.c index 1b0541f75..17f0319e2 100644 --- a/applications/services/loader/loader_cli.c +++ b/applications/services/loader/loader_cli.c @@ -54,13 +54,13 @@ static void loader_cli_open(FuriString* args, Loader* loader) { const char* app_name_str = furi_string_get_cstr(app_name); - NotificationApp* notifications = furi_record_open(RECORD_NOTIFICATION); - notification_message(notifications, &sequence_display_backlight_on); - furi_record_close(RECORD_NOTIFICATION); - FuriString* error_message = furi_string_alloc(); if(loader_start(loader, app_name_str, args_str, error_message) != LoaderStatusOk) { printf("%s\r\n", furi_string_get_cstr(error_message)); + } else { + NotificationApp* notifications = furi_record_open(RECORD_NOTIFICATION); + notification_message(notifications, &sequence_display_backlight_on); + furi_record_close(RECORD_NOTIFICATION); } furi_string_free(error_message); } while(false);