Skip to content

Commit

Permalink
fix: better error flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tmountain committed Feb 2, 2021
1 parent 15996a4 commit f59e9c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion download.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,13 @@ func FindOrFetchStockfish() string {
if success {
fmt.Println("Install was successful. Restart uchess.")
os.Exit(0)
} else {
fmt.Println("Install was unsuccessful. Please install Stockfish manually.")
os.Exit(0)
}
} else {
fmt.Println("Please see the docs for manual Stockfish configuration.")
os.Exit(0)
}
} else {
fmt.Println("Automated install is not supported on your platform.")
Expand All @@ -222,6 +228,5 @@ func FindOrFetchStockfish() string {
os.Exit(0)
}
}
// unreachable
return ""
}

0 comments on commit f59e9c6

Please sign in to comment.