Skip to content

Commit

Permalink
Fixed failing if lastStart.txt file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Feb 17, 2021
1 parent 8956afd commit 9aba32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minikube/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func setFlags() {
}
if os.Args[1] == "start" {
fp := localpath.LastStartLog()
if err := os.Remove(fp); err != nil {
if err := os.Remove(fp); err != nil && !os.IsNotExist(err) {
klog.Warningf("Unable to delete file %s: %v", err)
}
if !pflag.CommandLine.Changed("log_file") {
Expand Down

0 comments on commit 9aba32f

Please sign in to comment.