Fix error message

This commit is contained in:
Steven Tracey 2023-05-04 13:20:42 -04:00
parent 7770df3341
commit 28e83e92bc

View File

@ -12,13 +12,13 @@ import (
func main() {
fileBytes, err := os.ReadFile("./imgsLocation.txt")
if err != nil {
fmt.Printf("Error loading dir info from ./imgsLocation.txt: %v\nPress any key to continue...", err)
fmt.Printf("Error loading dir info from ./imgsLocation.txt: %v\nPress <enter> to continue...", err)
fmt.Scanln()
os.Exit(1)
}
files, err := os.ReadDir(string(fileBytes))
if err != nil {
fmt.Printf("Error reading images from directory %v: %v\nPress any key to continue...", string(fileBytes), err)
fmt.Printf("Error reading images from directory %v: %v\nPress <enter> to continue...", string(fileBytes), err)
fmt.Scanln()
os.Exit(1)
}