From 86cf60c3f1e7c992b7bf4269fc1eb2919890625d Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 18 Jun 2024 10:51:37 +0200 Subject: [PATCH] chore: improve error message on failed SMApp register/unregister (#42526) --- 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 ad9b51a576cb..370eccd45b61 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]); } }