feat: improved error handling
This commit is contained in:
parent
8247c4c7e4
commit
f9c1ffa0c7
4 changed files with 28 additions and 31 deletions
|
|
@ -2,14 +2,12 @@ package main
|
|||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func verifyGitAvailable() {
|
||||
_, err := exec.LookPath("git")
|
||||
if err != nil {
|
||||
log.Fatalf("Error: could not find git in path")
|
||||
os.Exit(1)
|
||||
log.Fatal("could not find git in path")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue