Fix error message
This commit is contained in:
parent
7770df3341
commit
28e83e92bc
4
main.go
4
main.go
@ -12,13 +12,13 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
fileBytes, err := os.ReadFile("./imgsLocation.txt")
|
fileBytes, err := os.ReadFile("./imgsLocation.txt")
|
||||||
if err != nil {
|
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()
|
fmt.Scanln()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
files, err := os.ReadDir(string(fileBytes))
|
files, err := os.ReadDir(string(fileBytes))
|
||||||
if err != nil {
|
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()
|
fmt.Scanln()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user