Skip to content

Commit

Permalink
preflight: macos: Reword tray messages a little bit
Browse files Browse the repository at this point in the history
This tries to improve a bit the messages which are shown when removing
the macOS tray files
  • Loading branch information
cfergeau authored and praveenkumar committed Mar 18, 2022
1 parent da1c475 commit 8e03ef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/crc/preflight/preflight_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ func hyperkitPreflightChecks(networkMode network.Mode) []Check {
var trayLaunchdCleanupChecks = []Check{
{
configKeySuffix: "check-old-autostart",
checkDescription: "Checking if old launchd config for tray autostart exists",
checkDescription: "Checking if old launchd config for tray and/or daemon exists",
check: func() error {
if launchd.PlistExists("crc.tray") || launchd.PlistExists("crc.daemon") {
return fmt.Errorf("force trigger cleanup to remove old launchd config for tray")
return fmt.Errorf("plist file for tray or daemon is present")
}
return nil
},
fixDescription: "Removing old launchd config for tray autostart",
fixDescription: "Removing old launchd config for tray and/or daemon",
fix: func() error {
_ = launchd.RemovePlist("crc.tray")
_ = launchd.RemovePlist("crc.daemon")
Expand Down

0 comments on commit 8e03ef6

Please sign in to comment.