Skip to content

Commit 0296c23

Browse files
authored
Update main.go
1 parent 6d25d07 commit 0296c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func getComic(num int) error {
128128
}
129129

130130
if _, err := os.Stat(imgName); err == nil {
131-
fmt.Println("Image File " + imgName + " exists. Skipping...")
131+
log.Fatal("Image File " + imgName + " exists. Skipping...")
132132

133133
} else if os.IsNotExist(err) {
134134

0 commit comments

Comments
 (0)