feat: improved error handling

This commit is contained in:
Simon Cornet 2025-03-04 13:21:29 +01:00
commit f9c1ffa0c7
4 changed files with 28 additions and 31 deletions

View file

@ -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")
}
}