Skip to content

Commit

Permalink
Refactor error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislbr committed Oct 7, 2023
1 parent 2db601a commit 2066397
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
if len(os.Args) > 1 && os.Args[1] == "init" {
err := installHook()
if err != nil {
log.Fatalf("Error installing hook: %v\n", err)
log.Fatalf("Error installing hook: %v 💥\n", err)
}
fmt.Println("Ready ready ✅")
os.Exit(0)
Expand All @@ -69,7 +69,7 @@ func main() {

cfg, err := newConfig().withYAML()
if err != nil {
log.Fatalf("Failed to get config: %v\n", err)
log.Fatalf("Failed to get config: %v 💥\n", err)
}

successes := 0
Expand All @@ -80,7 +80,7 @@ func main() {
if !*all {
staged, err := exec.Command("git", "diff", "--name-only", "--cached", "--diff-filter=AM").CombinedOutput()
if err != nil {
log.Fatalf("Error determining files with changes: %v\n", err)
log.Fatalf("Error determining files with changes: %v 💥\n", err)
}
if len(staged) == 0 {
continue
Expand Down

0 comments on commit 2066397

Please sign in to comment.