chore: improve error message on failed SMApp register/unregister (#42526)

This commit is contained in:
Shelley Vohr 2024-06-18 10:51:37 +02:00 committed by GitHub
parent e217b063a5
commit 86cf60c3f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,7 @@ std::string GetLaunchStringForError(NSError* error) {
return "The specified path doesn't exist or the helper tool at the " return "The specified path doesn't exist or the helper tool at the "
"specified path isn't valid"; "specified path isn't valid";
default: default:
return "Failed to register the login item"; return base::SysNSStringToUTF8([error localizedDescription]);
} }
} }