From c7219bf9e3b95559f941c5ed3ab71388164b6f47 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:15:36 +0200 Subject: [PATCH] chore: improve error message on failed SMApp register/unregister (#42557) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr --- shell/common/platform_util_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/platform_util_mac.mm b/shell/common/platform_util_mac.mm index ad9b51a576c..370eccd45b6 100644 --- a/shell/common/platform_util_mac.mm +++ b/shell/common/platform_util_mac.mm @@ -111,7 +111,7 @@ std::string GetLaunchStringForError(NSError* error) { return "The specified path doesn't exist or the helper tool at the " "specified path isn't valid"; default: - return "Failed to register the login item"; + return base::SysNSStringToUTF8([error localizedDescription]); } }