Return -1 when input file not available

This commit is contained in:
yo 2023-09-06 21:33:44 +02:00
parent 4b06c3064b
commit 85c1aff8ab

View File

@ -91,7 +91,7 @@ func main() {
f, err = os.Open(filename)
if err != nil {
fmt.Printf("Impossible d'ouvrir le fichier %s\n", filename)
return
os.Exit(-1)
}
r = bufio.NewReader(f)
}