fix: Fix Potential Index Out of Bound (#409)

This commit is contained in:
Banana-J 2024-01-29 11:31:21 +11:00 committed by GitHub
parent 0664e9fc47
commit 326a8c8984
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ func hash(ctx *cli.Context) {
}
f, err := os.Open(args[0])
if err != nil {
utils.Fatalf("Error opening file " + args[1])
utils.Fatalf("Error opening file " + args[0])
}
defer f.Close()