check return of ReadString()

This commit is contained in:
2024-04-26 13:37:38 +02:00
committed by T.v.Dein
parent 4c10ae89f8
commit 834fbcd9c5

View File

@@ -49,7 +49,10 @@ func init() {
fmt.Println("Please open a command shell and run it from there.")
fmt.Println()
fmt.Print("Press any key to quit: ")
bufio.NewReader(os.Stdin).ReadString('\n')
_, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil {
panic(err)
}
}
}
}