Skip to content

Commit

Permalink
Use the 'ExProgramUnsupported' as the error code for MK_WRONG_BINARY_…
Browse files Browse the repository at this point in the history
…WSL error.
  • Loading branch information
hetong07 committed Feb 4, 2021
1 parent 547f506 commit b1b8adb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/minikube/reason/reason.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ var (
Usage = Kind{ID: "MK_USAGE", ExitCode: ExProgramUsage}
Interrupted = Kind{ID: "MK_INTERRUPTED", ExitCode: ExProgramConflict}

WrongBinaryWSL = Kind{ID: "MK_WRONG_BINARY_WSL", ExitCode: ExProgramUnsupported}

NewAPIClient = Kind{ID: "MK_NEW_APICLIENT", ExitCode: ExProgramError}
InternalAddonEnable = Kind{ID: "MK_ADDON_ENABLE", ExitCode: ExProgramError}
InternalAddConfig = Kind{ID: "MK_ADD_CONFIG", ExitCode: ExProgramError}
Expand Down Expand Up @@ -190,7 +192,6 @@ var (

RsrcInsufficientStorage = Kind{ID: "RSRC_INSUFFICIENT_STORAGE", ExitCode: ExInsufficientStorage, Style: style.UnmetRequirement}

WrongBinaryWSL = Kind{ID: "WRONG_BINARY_WSL", ExitCode: ExHostError}
HostHomeMkdir = Kind{ID: "HOST_HOME_MKDIR", ExitCode: ExHostPermission}
HostHomeChown = Kind{ID: "HOST_HOME_CHOWN", ExitCode: ExHostPermission}
HostBrowser = Kind{ID: "HOST_BROWSER", ExitCode: ExHostError}
Expand Down

0 comments on commit b1b8adb

Please sign in to comment.